From efa45f81b5dcb9609b1e2365a51b7a25a1ba2ce0 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Tue, 12 Jul 2005 14:09:53 +0000 Subject: initial commit of adaptive svn path=/trunk/externals/grh/; revision=3317 --- adaptive/src/makefile | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 adaptive/src/makefile (limited to 'adaptive/src/makefile') 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 -- cgit v1.2.1