aboutsummaryrefslogtreecommitdiff
path: root/adaptive/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'adaptive/src/makefile')
-rwxr-xr-xadaptive/src/makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/adaptive/src/makefile b/adaptive/src/makefile
new file mode 100755
index 0000000..9a3f09b
--- /dev/null
+++ b/adaptive/src/makefile
@@ -0,0 +1,48 @@
+current: all
+
+.SUFFIXES: .pd_linux
+
+# make sure that the "m_pd.h" is somehow available either by putting it into this
+# directory, by adding it's path to the INCLUDE-path or by putting it into an
+# already included path, e.g. "/usr/include/"
+INCLUDE = -I. -I/usr/include/
+
+PDPATH = /usr/lib/pd
+
+LDFLAGS = -export-dynamic -shared
+
+#select either the DBG and OPT compiler flags below:
+
+CFLAGS = -DPD -DUNIX -W -Wno-unused \
+ -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
+
+SYSTEM = $(shell uname -m)
+
+# the sources:
+
+SRC = adaptive.c lms~.c lms2~.c nlms~.c nlms2~.c nlms3~.c
+
+TARGET = adaptive.pd_linux
+
+
+OBJ = $(SRC:.c=.o)
+
+
+# ------------------ targets ------------------------------------
+
+
+clean:
+ rm -f *.o *.pd_linux
+
+all: $(OBJ)
+ @echo :: $(OBJ)
+ ld $(LDFLAGS) -o $(TARGET) $(OBJ)
+ strip --strip-unneeded $(TARGET)
+
+$(OBJ) : %.o : %.c
+ touch $*.c
+ cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
+
+install:
+ cp $(TARGET) $(PDPATH)/externs
+ cp ../doc/help-*.pd $(PDPATH)/doc/5.reference