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