summaryrefslogtreecommitdiff
path: root/simple_thin_layer_model/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'simple_thin_layer_model/Makefile')
-rw-r--r--simple_thin_layer_model/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/simple_thin_layer_model/Makefile b/simple_thin_layer_model/Makefile
new file mode 100644
index 0000000..83877ee
--- /dev/null
+++ b/simple_thin_layer_model/Makefile
@@ -0,0 +1,37 @@
+### -*- make -*-
+### This file is part of the Debian xmds package
+### Copyright (C) 2006 Rafael Laboissiere
+### This file is relased under the GNU General Public License
+### NO WARRANTIES!
+
+### This makefile can be used to build and run the XMDS examples
+
+XMDS_FILES = $(shell ls *.xmds)
+RUN_FILES = $(patsubst %.xmds,%.run,$(XMDS_FILES))
+CC_FILES = $(patsubst %.xmds,%.cc,$(XMDS_FILES))
+XSIL_FILES = delta_2photon_noise.xsil
+M_FILES = $(patsubst %.xsil,%.m,$(XSIL_FILES))
+
+XMDS = xmds2
+XSIL2GRAPHICS = xsil2graphics2
+
+all: $(M_FILES)
+
+%.run: %.xmds
+ $(XMDS) $<
+ mv $(patsubst %.xmds,%,$<) $@
+
+$(XSIL_FILES): %.xsil: $(RUN_FILES)
+ ./$<
+
+$(M_FILES): %.m : %.xsil
+ $(XSIL2GRAPHICS) $<
+
+plot: $(M_FILES)
+ octave pp.m
+
+clean:
+ rm -f $(CC_FILES) $(RUN_FILES) $(M_FILES) $(XSIL_FILES) *.wisdom.fftw3 *.dat octave-core *.wisdom *.pdf
+
+.PRECIOUS: %.run %.xsil %.m
+.PHONY: all clean