all: $(EXEC)
faustine:
- @cd $(SRC_DIR) && $(MAKE) opt # using ocamlopt
- @cd $(SRC_DIR) && $(MAKE) clean
+ $(MAKE) -C $(SRC_DIR) opt # using ocamlopt compiler (optimized)
.PHONY: clean mrproper test help install uninstall
@echo "make dist : make a tar.gz file ready for distribution (TODO)"
clean:
- @(cd $(SRC_DIR) && $(MAKE) clean)
+ @($(MAKE) -C $(SRC_DIR) clean)
@(rm -f *~)
mrproper: clean
- @(cd $(SRC_DIR) && $(MAKE) mrproper)
- @(cd $(PREPROCESSOR_DIR) && $(MAKE) clean)
+ @($(MAKE) -C $(SRC_DIR) mrproper)
+ @($(MAKE) -C $(PREPROCESSOR_DIR) clean)
test:
- @cd $(SINWAVE_DIR) && $(MAKE)
+ @$(MAKE) -C $(SINWAVE_DIR)
@ls -l $(SINWAVE_DIR)/output1.wav
@echo " You might want to check the output file with either:"
--- /dev/null
+#! /bin/bash
+
+# libsndfile configure
+
+LIBSNDFILE_PREFIX=$PWD/interpretor/lib
+LIBSNDFILE_SRCDIR=$LIBSNDFILE_PREFIX/src/libsndfile-1.0.25
+LIBSNDFILE_DESTNAME=libsndfile
+DESTDIR=$LIBSNDFILE_PREFIX/$LIBSNDFILE_DESTNAME
+
+make mrproper
+mkdir -p $DESTDIR
+cd $LIBSNDFILE_SRCDIR && ./configure --prefix="$DESTDIR" --exec_prefix="$DESTDIR"
preprocessor::
@echo "Compiling preprocessor..."
- cd $(FAUST_PATH) && $(MAKE)
+ $(MAKE) -C $(FAUST_PATH) preprocessor
libsndfile-ocaml::
@echo "Compiling libsndfile-ocaml..."
- cd $(SNDFILE_PATH) && $(MAKE)
+ $(MAKE) -C $(SNDFILE_PATH)
$(EXEC): $(OBJS) $(COBJS) $(CLIBS)
clean::
rm -f *.cm[iox] *~ .*~
- rm -f $(MIDDLE_ML) *.o $(MLIS) .depend*
- @cd $(SNDFILE_PATH) && $(MAKE) clean
+ rm -f $(MIDDLE_ML) *.o $(MLIS) # .depend*
+ @$(MAKE) -C $(SNDFILE_PATH) clean
mrproper: clean
- @cd $(SNDFILE_PATH) && $(MAKE) mrproper
- rm -f $(EXEC)*
+ @$(MAKE) -C $(SNDFILE_PATH) mrproper
+ rm -f $(EXEC)* .depend*
.depend.input: Makefile
@echo -n '--Checking Ocaml input files: '
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::
+libsndfile:
+ $(MAKE) -C $(LIBSNDFILE_SRCDIR)
+ $(MAKE) -C $(LIBSNDFILE_SRCDIR) install
+
+libsfocaml:
cd $(LIBSFOCAML_SRCDIR) && PKG_CONFIG_PATH=$(DESTDIR)/lib/pkgconfig
- cd $(LIBSFOCAML_SRCDIR) && make depend
- cd $(LIBSFOCAML_SRCDIR) && make
+ $(MAKE) -C $(LIBSFOCAML_SRCDIR) depend
+ $(MAKE) -C $(LIBSFOCAML_SRCDIR)
.PHONY: clean mrproper help libsndfile libsfocaml
@echo "make clean : remove all object files"
clean:
- @(cd $(LIBSNDFILE_SRCDIR) && $(MAKE) clean)
@(rm -f *~)
mrproper: clean
rm -rf $(DESTDIR)
- @(cd $(LIBSFOCAML_SRCDIR) && $(MAKE) clean)
+ @($(MAKE) -C $(LIBSNDFILE_SRCDIR) clean)
+ @($(MAKE) -C $(LIBSFOCAML_SRCDIR) clean)
PREFIX ?= /usr/local
CROSS=i586-mingw32msvc-
-MAKEFILE := Makefile.unix
+MAKEFILE := Makefile #.unix
prefix := $(DESTDIR)$(PREFIX)
arch := $(wildcard architecture/*.*)
vname := faust-$(version)-$(shell date +%y%m%d.%H%M%S)
zname := faust-$(version)
+
+preprocessor :
+ $(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix)
+
all :
$(MAKE) -C compiler -f $(MAKEFILE) prefix=$(prefix)
$(MAKE) -C architecture/osclib
$(CXX) $(CXXFLAGS) $(objects) -o faust
preprocess.a : $(libobjects)
+ rm -f preprocess.a # Avoid Mac OS aborting make with error "file too fat"
ar rvs $@ $(libobjects)
.PHONY: clean depend ctags parser