aboutsummaryrefslogtreecommitdiff
path: root/src/makefile_linux
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2006-11-28 18:56:01 +0000
committermusil <tmusil@users.sourceforge.net>2006-11-28 18:56:01 +0000
commitdda182c3ed3180554627f99b5971b674a96373c3 (patch)
tree5d9c6ea97c31b8e2a3c47f124dc5f7f5df856b74 /src/makefile_linux
parent767ef29fd3167254cf574c7e985dad6983e5acdb (diff)
changed float to t_float
-fno-strict-aliasing #pragma obsolete svn path=/trunk/externals/iem/iem_bin_ambi/; revision=6501
Diffstat (limited to 'src/makefile_linux')
-rw-r--r--src/makefile_linux52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/makefile_linux b/src/makefile_linux
new file mode 100644
index 0000000..3ba0ff9
--- /dev/null
+++ b/src/makefile_linux
@@ -0,0 +1,52 @@
+current: all
+
+.SUFFIXES: .pd_linux
+
+INCLUDE = -I. -I/usr/local/src/pd/src
+
+LDFLAGS = -export-dynamic -shared
+LIB = -ldl -lm -lpthread
+
+#select either the DBG and OPT compiler flags below:
+
+CFLAGS = -DPD -DUNIX -W -Werror -Wno-unused \
+ -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing \
+ -DDL_OPEN
+
+SYSTEM = $(shell uname -m)
+
+# the sources
+
+SRC = bin_ambi_calc_HRTF.c \
+ bin_ambi_reduced_decode2.c \
+ bin_ambi_reduced_decode.c \
+ bin_ambi_reduced_decode_fft2.c \
+ bin_ambi_reduced_decode_fft.c \
+ bin_ambi_reduced_decode_fir2.c \
+ bin_ambi_reduced_decode_fir.c \
+ iem_bin_ambi.c
+
+TARGET = iem_bin_ambi.pd_linux
+
+
+OBJ = $(SRC:.c=.o)
+
+#
+# ------------------ targets ------------------------------------
+#
+
+clean:
+ rm $(TARGET)
+ rm *.o
+
+all: $(OBJ)
+ @echo :: $(OBJ)
+ $(LD) $(LDFLAGS) -o $(TARGET) *.o $(LIB)
+ strip --strip-unneeded $(TARGET)
+
+$(OBJ) : %.o : %.c
+ $(CC) $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
+
+
+
+