From 31d63c4362e3e3af720f06fb5675b7568b0a5d93 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 20 May 2009 18:36:16 +0000 Subject: 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 --- netsend~/makefile | 15 +++++++++------ 1 file 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 ----------------------- -- cgit v1.2.1