From 7393949d3a553b6e3d51a7b4c9d3285b6e510b8b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 22 Jul 2010 02:51:21 +0000 Subject: added powerpc version of deployment makefile svn path=/trunk/externals/august/readanysf~/; revision=13728 --- Makefile.darwin_powerpc_10.4 | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Makefile.darwin_powerpc_10.4 diff --git a/Makefile.darwin_powerpc_10.4 b/Makefile.darwin_powerpc_10.4 new file mode 100644 index 0000000..2d60ab6 --- /dev/null +++ b/Makefile.darwin_powerpc_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 ppc -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 ppc -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 -- cgit v1.2.1