interpretor/preprocessor/faust-0.9.47mr3/compiler/faust
*.[oa]
gmon.out
-/Makefile
*.svg
*.cm[iox]
*~
all: $(EXEC)
faustine:
-# @cp $(SNDFILE_PATH)/sndfile_stub.o $(SRC_DIR)
-## Using ocamlopt with 'make opt'
- @cd $(SRC_DIR) && $(MAKE) opt #OCAML_INCLUDE_PATH=$(OCAML_INCLUDE_PATH) SNDFILE_PATH=$(SNDFILE_PATH)
+ @cd $(SRC_DIR) && $(MAKE) opt # using ocamlopt
@cd $(SRC_DIR) && $(MAKE) clean
.PHONY: clean mrproper test help install uninstall
+++ /dev/null
-#!/bin/bash
-
-prefix="${PWD}"
-INTERPRETOR_PATH="$prefix/interpretor"
-PREPROCESSOR_PATH="$INTERPRETOR_PATH/preprocessor/faust-0.9.47mr3"
-OCAML_INCLUDE_PATH_DEFAULT="/usr/lib/ocaml"
-SNDFILE_PATH_DEFAULT="~/Desktop/libsndfile-ocaml"
-
-cd $PREPROCESSOR_PATH
-make clean
-cd $INTERPRETOR_PATH
-make mrproper
-cd $prefix
-
-echo ""
-echo "1. Please set ocaml include header files' path: "
-echo " [default]: $OCAML_INCLUDE_PATH_DEFAULT"
-read -r OCAML_INCLUDE_PATH
-
-if [ -z $OCAML_INCLUDE_PATH ]; then
- OCAML_INCLUDE_PATH=$OCAML_INCLUDE_PATH_DEFAULT
-fi
-echo "Ocaml include path : $OCAML_INCLUDE_PATH"
-
-
-echo ""
-echo "2. Please set libsndfile-ocaml path: "
-echo " [default]: $SNDFILE_PATH_DEFAULT"
-read -r SNDFILE_PATH
-
-if [ -z $SNDFILE_PATH ]; then
- SNDFILE_PATH=$SNDFILE_PATH_DEFAULT
-fi
-echo "libsndfile-ocaml path : $SNDFILE_PATH"
-
-rm -f Makefile
-cp Makefile.in Makefile
-echo "OCAML_INCLUDE_PATH = $OCAML_INCLUDE_PATH" >> Makefile
-echo "SNDFILE_PATH = $SNDFILE_PATH" >> Makefile
-
OCAML_INCLUDE_PATH := $(subst bin,lib,$(shell which ocaml))
# Path to sndfile library
-SNDFILE_PATH := lib/libsndfile
+SNDFILE_PATH := lib/src/libsndfile-ocaml
# Path to Faust.mr3
FAUST_PATH = preprocessor/faust-0.9.47mr3
# INCLUDE=-INCLUDE
INCLUDE = -I $(SNDFILE_PATH)
+SNDFILE_STUB := $(SNDFILE_PATH)/sndfile_stub.o
# Default setting of the WITH* variables. Should be changed if your
# local libraries are not found by the compiler.
$(EXEC): $(OBJS) $(COBJS) $(CLIBS)
@echo "Compiling $(EXEC)..."
+ cp $(SNDFILE_STUB) .
$(CAMLC) $(CAMLC_OPTIONS) -o $(EXEC) $(OBJS) $(COBJS) $(CLIBS)
$(EXEC).opt: $(OPTOBJS) $(COBJS) $(CLIBS)
@echo "Compiling optimized $(EXEC)..."
+ cp $(SNDFILE_STUB) .
$(CAMLOPT) $(CAMLOPT_OPTIONS) -o $(EXEC) $(OPTOBJS) $(COBJS) $(CLIBS)
document: $(SMLYL) $(OBJS)
-LIBSNDFILEDIR = ../../libsndfile/lib #/home/erikd/Local/lib
+LIBSNDFILEDIR = $(realpath ../../libsndfile/lib)
CC = gcc
CFLAGS = -g -W -Wall -Werror -Wno-missing-field-initializers
OCAML_BINDIR = $(shell which ocaml)
OCAML_LIBDIR = $(subst bin,lib,$(OCAML_BINDIR))
-OCAML_CFLAGS = -I $(OCAML_LIBDIR) #/usr/lib/ocaml/$(shell ocamlopt -version)
+OCAML_CFLAGS = -I $(OCAML_LIBDIR)
LIBSNDFILE = -ccopt -L$(LIBSNDFILEDIR) -cclib -lsndfile -cclib -lm