X-Git-Url: https://scm.cri.mines-paristech.fr/git/Faustine.git/blobdiff_plain/91130bc31ab7163870b104407781db50a6f84980..6150323d86c4feb54bc8e994f7a4e52c3b34c6ec:/examples/2d_fft/Makefile?ds=sidebyside diff --git a/examples/2d_fft/Makefile b/examples/2d_fft/Makefile index 163b306..1ab7a84 100644 --- a/examples/2d_fft/Makefile +++ b/examples/2d_fft/Makefile @@ -1,10 +1,23 @@ SRC = fft2d.dsp -INPUT = hcosine-32.csv +IMGIN = hcosine-32.png +LINES = 32 -all: clean fft2d +BASENAME = output +FORMAT = csv +CSVIN = $(IMGIN:.png=.csv) +CSVOUT = $(BASENAME)1.$(FORMAT) +IMGOUT = $(SRC:.dsp=.png) -fft2d: $(SRC) $(INPUT) - faustine -d $(SRC) -i $(INPUT) --oformat csv +all: $(IMGOUT) + +$(IMGOUT): $(CSVOUT) + octave -qf img_write.m + +$(CSVOUT): $(SRC) $(CSVIN) + faustine -d $(SRC) -i $(CSVIN) -t $(LINES) --oformat $(FORMAT) --obasename $(BASENAME) + +$(CSVIN): $(IMGIN) + octave -qf img_read.m clean:: - rm -f gmon.out output* + rm -f gmon.out $(IMGOUT) $(BASENAME)* *csv