diff options
author | musil <tmusil@users.sourceforge.net> | 2007-11-08 14:09:21 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2007-11-08 14:09:21 +0000 |
commit | e07f4fdf7c758cefb6fcd4778805a771d3b04c17 (patch) | |
tree | be3563d26be43bcc403111f33e81ec360234b754 /src/makefile_darwin | |
parent | 7a420e4fe20dcfd99b28bbdecfb14dcb0f34ec4b (diff) |
mac makes
svn path=/trunk/externals/iem/iem_adaptfilt/; revision=8963
Diffstat (limited to 'src/makefile_darwin')
-rw-r--r-- | src/makefile_darwin | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/makefile_darwin b/src/makefile_darwin new file mode 100644 index 0000000..11405a0 --- /dev/null +++ b/src/makefile_darwin @@ -0,0 +1,52 @@ +current: all
+
+.SUFFIXES: .pd_darwin + +PD_INSTALL_PATH = "/Applications/Pd.app/Contents/Resources"
+
+INCLUDE = -I. -I$(PD_INSTALL_PATH)/src
+
+LIB = -ldl -lm -lpthread
+
+CFLAGS = -DPD -DUNIX -g -Wall -W -Werror -Wno-unused \
+ -Wno-parentheses -Wno-switch -O2 -fno-strict-aliasing \
+ $(INCLUDE) $(UCFLAGS) $(AFLAGS) \
+
+MACOSXLINKFLAGS = -bundle -bundle_loader $(PD_INSTALL_PATH)/bin/pd
+
+SYSTEM = $(shell uname -m)
+
+# the sources
+ +SRC = NLMS~.c \ + NLMSCC~.c \ + n_CNLMS~.c \ + n_CLNLMS~.c \ + iem_adaptfilt.c + +TARGET = iem_adaptfilt.pd_darwin + + +OBJ = $(SRC:.c=.o)
+
+#
+# ------------------ targets ------------------------------------
+#
+
+clean:
+ rm ../$(TARGET)
+ rm *.o
+
+all: $(OBJ)
+ @echo :: $(OBJ)
+ $(CC) $(MACOSXLINKFLAGS) -o $(TARGET) *.o $(LIB) + strip -S -x $(TARGET)
+ mv $(TARGET) ..
+
+$(OBJ) : %.o : %.c
+ touch $*.c
+ $(CC) $(CFLAGS) -DPD $(INCLUDE) -c -o $*.o $*.c + + + + |