aboutsummaryrefslogtreecommitdiff
path: root/src/makefile_lin
diff options
context:
space:
mode:
authorN.N. <mnoi@users.sourceforge.net>2006-08-02 14:02:28 +0000
committerN.N. <mnoi@users.sourceforge.net>2006-08-02 14:02:28 +0000
commitd056668887fde2dd2a784ef3507ec35e98131439 (patch)
tree43d175f1e7b56ed40c3a5d5c1a4acc55fee87cd5 /src/makefile_lin
no messagesvn2git-root
svn path=/trunk/externals/iem/iem_adaptfilt/; revision=5455
Diffstat (limited to 'src/makefile_lin')
-rw-r--r--src/makefile_lin51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/makefile_lin b/src/makefile_lin
new file mode 100644
index 0000000..1e6a625
--- /dev/null
+++ b/src/makefile_lin
@@ -0,0 +1,51 @@
+current: all
+
+.SUFFIXES: .pd_linux
+
+INCLUDE = -I. -I/usr/local/src/pd-0.37-1/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 \
+ -DDL_OPEN
+
+SYSTEM = $(shell uname -m)
+
+# the sources
+
+SRC = sigNLMS.c \
+ sigNLMSCC.c \
+ sign_CNLMS.c \
+ sign_CLNLMS.c \
+ iem_adaptfilt.c
+
+TARGET = iem_adaptfilt.pd_linux
+
+
+OBJ = $(SRC:.c=.o)
+
+#
+# ------------------ targets ------------------------------------
+#
+
+clean:
+ rm ../../lib/$(TARGET)
+ rm *.o
+
+all: $(OBJ)
+ @echo :: $(OBJ)
+ ld $(LDFLAGS) -o $(TARGET) *.o $(LIB)
+ strip --strip-unneeded $(TARGET)
+ rm *.o
+
+$(OBJ) : %.o : %.c
+ touch $*.c
+ cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
+
+
+
+