Makefile and configure cleaning (configure is no more needed).
[Faustine.git] / interpretor / lib / Makefile
1 # Faustine library dependancies Makefile.
2
3 LIBSNDFILE_SRCDIR ?= src/libsndfile-1.0.25
4 LIBSFOCAML_SRCDIR ?= src/libsndfile-ocaml
5 LIBSNDFILE_DESTNAME ?= libsndfile
6 DESTDIR := $(abspath .)/$(LIBSNDFILE_DESTNAME)
7
8 all: librairies
9
10 librairies : libsndfile libsfocaml
11
12 libsndfile:
13 mkdir -p $(DESTDIR)
14 cd $(LIBSNDFILE_SRCDIR) && ./configure --prefix="$(DESTDIR)" --exec_prefix="$(DESTDIR)"
15 cd $(LIBSNDFILE_SRCDIR) && make
16 cd $(LIBSNDFILE_SRCDIR) && make install
17 cd $(LIBSNDFILE_SRCDIR) && make clean
18
19 libsfocaml:
20 cd $(LIBSFOCAML_SRCDIR) && PKG_CONFIG_PATH=$(DESTDIR)/lib/pkgconfig
21 cd $(LIBSFOCAML_SRCDIR) && make
22 cd $(LIBSFOCAML_SRCDIR) #&& make clean
23
24 .PHONY: clean mrproper help libsndfile libsfocaml
25
26 help :
27 @echo "make or make all : compile librairies"
28 @echo "make clean : remove all object files"
29
30 clean:
31 @(cd $(LIBSNDFILE_SRCDIR) && $(MAKE) clean)
32 @(rm -f *~)
33
34 mrproper: clean
35 rm -rf $(DESTDIR)