aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-05-20 18:36:16 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-05-20 18:36:16 +0000
commit31d63c4362e3e3af720f06fb5675b7568b0a5d93 (patch)
tree0fe8617beb1e4b27ca95b17e69681a54b84f0a1b
parent70a17cba37ee1b2ad64beb3dc9900745ff88b307 (diff)
fixed built on Mac OS X to use built-in lrint() instead of included version coded in PowerPC assembly; also, builds universal/10.4 by default
svn path=/trunk/externals/olafmatt/; revision=11469
-rwxr-xr-xnetsend~/makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/netsend~/makefile b/netsend~/makefile
index c587c1f..cee6861 100755
--- a/netsend~/makefile
+++ b/netsend~/makefile
@@ -56,17 +56,20 @@ pd_darwin: netreceive~.pd_darwin netsend~.pd_darwin
.SUFFIXES: .pd_darwin
-DARWINCFLAGS = -DPD -DUNIX -DMACOSX -O2 \
- -Wall -W \
- -Wno-unused -Wno-parentheses -Wno-switch
+DARWINFATFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
+
+DARWINCFLAGS = -DPD -DUNIX -DMACOSX -DHAVE_LRINT -DHAVE_LRINTF -fast -fPIC \
+ -Wall -W -Wno-unused -Wstrict-prototypes \
+ $(DARWINFATFLAGS)
DARWININCLUDE = -I../../../pd/src
+DARWINLDFLAGS = -bundle -undefined dynamic_lookup $(DARWINFATFLAGS)
+
.c.pd_darwin:
cc $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c
- cc -bundle -undefined suppress -o $*.pd_darwin $*.o
- rm -f $*.o ../$*.pd_darwin
- ln -s $*/$*.pd_darwin ..
+ cc $(DARWINLDFLAGS) -o $*.pd_darwin $*.o
+ rm -f $*.o
# ----------------------- LINUX i386 -----------------------