1 # Faustine top-level Makefile.
5 PREPROCESSOR_DIR
= $(SRC_DIR
)/preprocessor
/faust-0.9
.47mr3
6 OUTPUTSOUNDS_DIR
= examples
/output_sounds
10 prefix := $(DESTDIR
)$(PREFIX
)
11 arch
:= $(wildcard architecture
/*.
*)
16 # @cp $(SNDFILE_PATH)/sndfile_stub.o $(SRC_DIR)
17 ## Using ocamlopt with 'make opt'
18 @cd
$(SRC_DIR
) && $(MAKE
) opt
#OCAML_INCLUDE_PATH=$(OCAML_INCLUDE_PATH) SNDFILE_PATH=$(SNDFILE_PATH)
19 @cd
$(SRC_DIR
) && $(MAKE
) clean
21 .PHONY
: clean mrproper
test help
install uninstall
24 @echo
"make or make all : compiler the faustine interpreter"
25 @echo
"make clean : remove all object files"
26 @echo
"make doc : generate the documentation using ocamldoc (TODO)"
27 @echo
"make install : install the interpreter and the library files in $(prefix)/bin $(prefix)/lib/faustine"
28 @echo
"make uninstall : undo what install did"
29 @echo
"make dist : make a tar.gz file ready for distribution (TODO)"
32 @
(cd
$(SRC_DIR
) && $(MAKE
) clean)
36 @
(cd
$(SRC_DIR
) && $(MAKE
) mrproper
)
37 @
(cd
$(PREPROCESSOR_DIR
) && $(MAKE
) clean)
39 test: # TODO, obsolete
40 @
rm -f
$(OUTPUTSOUNDS_DIR
)/output0.wav
41 @cd
$(SRC_DIR
) && .
/faustine
-d ..
/dsp_files
/sin.dsp
42 @ls
-l
$(OUTPUTSOUNDS_DIR
)/output0.wav
44 @echo
" You might want to check the output file with either:"
45 @echo
"audacity ../examples/output_sounds/output0.wav"
46 @echo
"open ../examples/output_sounds/output0.wav"
47 @echo
"octave -q --eval 'plot(wavread(\"../examples/output_sounds/output0.wav\")); pause'"
50 mkdir
-p
$(prefix)/lib
/faustine
/
51 mkdir
-p
$(prefix)/bin
/
52 install interpretor
/faustine
$(prefix)/bin
/
53 install -m
0644 $(arch
) $(prefix)/lib
/faustine
/
56 rm -rf
$(prefix)/lib
/faustine
/
57 rm -f
$(prefix)/bin
/faustine