aboutsummaryrefslogtreecommitdiff
path: root/Makefile.darwin_i386_10.4
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.darwin_i386_10.4')
-rw-r--r--Makefile.darwin_i386_10.440
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile.darwin_i386_10.4 b/Makefile.darwin_i386_10.4
new file mode 100644
index 0000000..0a9ad52
--- /dev/null
+++ b/Makefile.darwin_i386_10.4
@@ -0,0 +1,40 @@
+# 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
+
+
+CFLAGS += -mmacosx-version-min=10.4 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
+LDFLAGS = -L/sw/lib -lgavl -lgmerlin_avdec \
+ -dynamiclib -undefined dynamic_lookup -lsupc++ -mmacosx-version-min=10.4 \
+ -lSystem.B -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
+
+
+all: pd_darwin
+
+pd_darwin: readanysf~.cpp Readsf.cpp Readsf.h objs/FifoAudioFrames.o objs/Readsf.o FifoAudioFrames.h FifoAudioFrames.cpp
+ g++ -shared -o readanysf~.pd_darwin $(CFLAGS) $(LDFLAGS) \
+ 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