libsndfile compiling.
[Faustine.git] / interpretor / lib / Makefile
1 LIBSNDFILESRC := src/libsndfile-1.0.25
2 prefix := libsndfile
3 rootdir := $(abspath .)
4 #TARGETDIR ?= ""
5 #PREFIX ?= /usr/local
6 #prefix := $(DESTDIR)$(PREFIX)
7 #arch := $(wildcard architecture/*.*)
8
9 all: librairies
10
11 librairies :: libsndfile
12 # @cp $(SNDFILE_PATH)/sndfile_stub.o $(SRC_DIR)
13 # @cd $(SRC_DIR) && $(MAKE) opt OCAML_INCLUDE_PATH=$(OCAML_INCLUDE_PATH) SNDFILE_PATH=$(SNDFILE_PATH)
14 # @cd $(SRC_DIR) && $(MAKE) clean
15
16 libsndfile:
17 mkdir -p $(prefix)
18 cd $(LIBSNDFILESRC) && ./configure --prefix="$(rootdir)/$(prefix)" --exec_prefix="$(rootdir)/$(prefix)"
19 cd $(LIBSNDFILESRC) && make
20 cd $(LIBSNDFILESRC) && make install
21
22 .PHONY: clean mrproper help libsndfile
23
24 help :
25 @echo "make or make all : compile librairies"
26 @echo "make clean : remove all object files"
27
28 clean:
29 @(cd $(LIBSNDFILESRC) && $(MAKE) clean)
30 @(rm -f *~)
31
32 mrproper: clean
33 @(cd $(LIBSNDFILESRC) && $(MAKE) clean)
34
35
36 # Library paths for OCaml and libsndfile-ocaml
37 # OCAML_INCLUDE_PATH
38 # SNDFILE_PATH
39 OCAML_INCLUDE_PATH = /usr/local/lib/ocaml
40 SNDFILE_PATH = /Users/karimbarkati/Boulot/2013-07-CRI/Interpretor/libsndfile-ocaml