d8985d13c4fc7095caeb8d185d454d0bd7afa5a5
[Faustine.git] / Makefile.in
1 SRC_DIR = interpretor
2 PREPROCESSOR_DIR = $(SRC_DIR)/faust-0.9.47mr3
3 OUTPUTSOUNDS_DIR = output_sounds
4
5 all: $(EXEC)
6
7 faustine:
8 @cp $(SNDFILE_PATH)/sndfile_stub.o $(SRC_DIR)
9 @cd $(SRC_DIR) && $(MAKE) opt OCAML_INCLUDE_PATH=$(OCAML_INCLUDE_PATH) SNDFILE_PATH=$(SNDFILE_PATH)
10 @cd $(SRC_DIR) && $(MAKE) clean
11
12 .PHONY: clean mrproper
13
14 clean:
15 @cd $(SRC_DIR) && $(MAKE) clean)
16 @(rm -f *~)
17
18 mrproper: clean
19 @(cd $(SRC_DIR) && $(MAKE) mrproper)
20 @(cd $(PREPROCESSOR_DIR) && $(MAKE) clean)
21
22 test:
23 @rm -f $(OUTPUTSOUNDS_DIR)/output0.wav
24 @cd $(SRC_DIR) && ./faustine -csv -wav ../dsp_files/sin.dsp
25 @ls -l $(OUTPUTSOUNDS_DIR)/output0.wav
26
27 @echo " You might want to check the output file with either:"
28 @echo "audacity ../output_sounds/output0.wav"
29 @echo "open ../output_sounds/output0.wav"
30 @echo "octave -q --eval 'plot(wavread(\"output_sounds/output0.wav\")); pause'"
31
32 # Library paths for OCaml and libsndfile-ocaml
33 # OCAML_INCLUDE_PATH
34 # SNDFILE_PATH
35