X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/992d59159547267e1491fcd1c5123765b4c452b8..63cf293f572ae7d5c1c83b9dffb31e7d774f8854:/interpretor/lib/Makefile diff --git a/interpretor/lib/Makefile b/interpretor/lib/Makefile new file mode 100644 index 0000000..d6ed16f --- /dev/null +++ b/interpretor/lib/Makefile @@ -0,0 +1,35 @@ +# Faustine library dependancies Makefile. + +LIBSNDFILE_SRCDIR ?= src/libsndfile-1.0.25 +LIBSFOCAML_SRCDIR ?= src/libsndfile-ocaml +LIBSNDFILE_DESTNAME ?= libsndfile +DESTDIR := $(abspath .)/$(LIBSNDFILE_DESTNAME) + +all: librairies + +librairies : libsndfile libsfocaml + +libsndfile: + mkdir -p $(DESTDIR) + cd $(LIBSNDFILE_SRCDIR) && ./configure --prefix="$(DESTDIR)" --exec_prefix="$(DESTDIR)" + cd $(LIBSNDFILE_SRCDIR) && make + cd $(LIBSNDFILE_SRCDIR) && make install + cd $(LIBSNDFILE_SRCDIR) && make clean + +libsfocaml: + cd $(LIBSFOCAML_SRCDIR) && PKG_CONFIG_PATH=$(DESTDIR)/lib/pkgconfig + cd $(LIBSFOCAML_SRCDIR) && make + cd $(LIBSFOCAML_SRCDIR) #&& make clean + +.PHONY: clean mrproper help libsndfile libsfocaml + +help : + @echo "make or make all : compile librairies" + @echo "make clean : remove all object files" + +clean: + @(cd $(LIBSNDFILE_SRCDIR) && $(MAKE) clean) + @(rm -f *~) + +mrproper: clean + rm -rf $(DESTDIR)