aboutsummaryrefslogtreecommitdiff
path: root/Makefile.darwin
diff options
context:
space:
mode:
authorN.N <matju@users.sourceforge.net>2009-12-14 19:55:54 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:04:53 +0200
commitc235f09fc5ef83827ac53375015f469cd7e13eec (patch)
tree4639e88e27e105709a2bbd6352cec17808fdc5c9 /Makefile.darwin
parent40194041a1efbf98c45185098e3795150a0128a4 (diff)
import version 0.36
svn path=/trunk/externals/august/readanysf~/; revision=12836
Diffstat (limited to 'Makefile.darwin')
-rw-r--r--Makefile.darwin44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile.darwin b/Makefile.darwin
new file mode 100644
index 0000000..a4e06eb
--- /dev/null
+++ b/Makefile.darwin
@@ -0,0 +1,44 @@
+# Edit these two variables to suit your system.
+# You need both gavl and gmerlin_avdec libs to compile
+#
+GAVLPATH=/sw/include
+PDPATH=/Applications/Pd-extended.app/Contents/Resources/include/
+
+##############################################
+LBITS := $(shell getconf LONG_BIT)
+ifeq ($(LBITS),64)
+ # do 64 bit stuff here, like set some CFLAGS
+CFLAGS = -fPIC -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+else
+ # do 32 bit stuff here
+CFLAGS = -I./ -I$(GAVLPATH) -I$(GAVLPATH)/gavl -I$(GAVLPATH)/gmerlin -I$(PDPATH) -Wall
+endif
+
+# 10.4 Tiger
+ FAT_FLAGS = -arch ppc -arch ppc64 -arch i386
+# 10.5 Leopard
+# FAT_FLAGS = -arch ppc -arch ppc7400 -arch ppc64 -arch i386 -arch x86_64
+CFLAGS += -I/sw/include -I$(externals_src)/pdp/include -DMACOSX -DUNIX -Dunix
+LDFLAGS += -bundle -bundle_loader $(pd_src)/bin/pd -undefined dynamic_lookup \
+ -L/sw/lib -weak_framework Carbon -lc -L/sw/lib -lgavl -lgmerlin_avdec
+DYLIB_LDFLAGS = -dynamiclib -undefined dynamic_lookup -read_only_relocs warning -L/sw/lib -lgavl -lgmerlin_avdec
+STRIP = strip -x
+
+
+all: pd_darwin
+
+pd_darwin: readanysf~.cpp Readsf.cpp Readsf.h objs/FifoAudioFrames.o objs/Readsf.o FifoAudioFrames.h FifoAudioFrames.cpp
+ g++ $(DYLIB_LDFLAGS) -o readanysf~.pd_darwin $(CFLAGS) \
+ readanysf~.cpp \
+ objs/FifoAudioFrames.o \
+ objs/Readsf.o
+ $(STRIP) readanysf~.pd_darwin
+
+objs/Readsf.o: Readsf.cpp Readsf.h FifoAudioFrames.h
+ g++ -c -o objs/Readsf.o Readsf.cpp $(CFLAGS)
+
+objs/FifoAudioFrames.o: FifoAudioFrames.cpp FifoAudioFrames.h
+ g++ -c -o objs/FifoAudioFrames.o FifoAudioFrames.cpp $(CFLAGS)
+
+clean:
+ rm objs/*.o readanysf~.pd_linux