X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/829259826b29edc284ec43810bb505a832091dda..9127d89ef6f731c5e93f8d59a3dd2dd1b3c73e07:/examples/fft/Makefile?ds=sidebyside diff --git a/examples/fft/Makefile b/examples/fft/Makefile index 20aeaf3..8194124 100644 --- a/examples/fft/Makefile +++ b/examples/fft/Makefile @@ -1,21 +1,42 @@ SRC = fft.dsp +BASENAME = output +FORMAT = csv +CSVOUT = $(BASENAME)1.$(FORMAT) +IMGOUT = $(SRC:.dsp=.png) + +SINS = four_sins.dsp +WAV_BASENAME = $(SINS:.dsp=) +WAV_FORMAT = wav +WAVIN = $(WAV_BASENAME)1.$(WAV_FORMAT) + INPUT1 = sin_1378Hz_0.005_ampli_128samples.wav INPUT2 = sin_2067Hz_0.005_ampli_128samples.wav INPUT3 = sin_16536Hz_0.005_ampli_128samples.wav INPUT4 = sin_22000Hz_0.005_ampli_128samples.wav -BASENAME = output -FORMAT = csv -CSVOUT = $(BASENAME)1.$(FORMAT) -IMGOUT = $(SRC:.dsp=.png) all: $(IMGOUT) $(IMGOUT): $(CSVOUT) octave -qf img_write.m -$(CSVOUT): $(SRC) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4) - faustine -d $(SRC) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4) --oformat $(FORMAT) --obasename $(BASENAME) +$(CSVOUT): $(SRC) $(WAVIN) + faustine -d $(SRC) -i $(WAVIN) --oformat $(FORMAT) --obasename $(BASENAME) + +$(WAVIN): $(SINS) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4) + faustine -d $(SINS) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4) --oformat $(WAV_FORMAT) --obasename $(WAV_BASENAME) clean:: rm -f gmon.out output* + + + + + + + + + + + +