aboutsummaryrefslogtreecommitdiff
path: root/getdollarzero/makefile
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2007-09-10 22:25:41 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2007-09-10 22:25:41 +0000
commit31f625c4e5eaf443872eece61b9a7156121669d9 (patch)
treec35dc757a113af4cb6ce87577a1bae6026ef2430 /getdollarzero/makefile
This commit was generated by cvs2svn to compensate for changes in r8719,svn2git-root
which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/tof/; revision=8720
Diffstat (limited to 'getdollarzero/makefile')
-rwxr-xr-xgetdollarzero/makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/getdollarzero/makefile b/getdollarzero/makefile
new file mode 100755
index 0000000..14a52b3
--- /dev/null
+++ b/getdollarzero/makefile
@@ -0,0 +1,60 @@
+current:
+ echo make pd_linux, pd_win, or pd_darwin
+
+clean: ; rm -f *.pd_linux *.o
+
+# ----------------------- WINDOWS -----------------------
+
+pd_win: getdollarzero.dll
+
+.SUFFIXES: .dll
+
+WINCFLAGS = -Wall -W -Wshadow -Wstrict-prototypes -DPD -DNT -W3 -WX -Werror -Wno-unused -mms-bitfields -Wno-parentheses -Wno-switch -O6 -funroll-loops -fomit-frame-pointer
+
+PDPATH = /home/tom/pd0.4
+
+WININCLUDE = -I.. -I../include -I$(PDPATH)/src
+
+LDFLAGS = -shared
+
+.c.dll:
+ gcc -mms-bitfields $(WINCFLAGS) $(WININCLUDE) -o $*.o -c $*.c
+ gcc $(LDFLAGS) -o $*.dll $*.o $(PDPATH)/bin/pd.dll
+ strip --strip-unneeded $*.dll
+ rm -f $*.o
+
+
+# ----------------------- LINUX i386 -----------------------
+
+pd_linux: getdollarzero.pd_linux
+
+.SUFFIXES: .pd_linux
+
+PDPATH = /home/tom/pd/cvs/pd
+
+LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
+ -Wall -W -Wshadow -Wstrict-prototypes -Werror \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+LINUXINCLUDE = -I$(PDPATH)/src
+
+.c.pd_linux:
+ cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+ ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
+ strip --strip-unneeded $*.pd_linux
+ rm $*.o
+
+# ----------------------- Mac OSX -----------------------
+
+pd_darwin: getdollarzero.pd_darwin
+
+.SUFFIXES: .pd_darwin
+
+DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
+ -Wno-unused -Wno-parentheses -Wno-switch
+
+.c.pd_darwin:
+ cc $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+ cc -bundle -undefined suppress -flat_namespace -o $*.pd_darwin $*.o
+ rm -f $*.o
+