diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-07-31 20:44:17 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-07-31 20:44:17 +0000 |
commit | a6c2d64b740008f10ddfa35143632669e0db1a16 (patch) | |
tree | 70bee58bb0d875095ba2bc82b3272dc9cdebe939 /examples/MSP/Makefile | |
parent | 0c85e6244dafdfb1df660a174ea369cdfa78252e (diff) | |
download | LibXtract-a6c2d64b740008f10ddfa35143632669e0db1a16.tar.gz LibXtract-a6c2d64b740008f10ddfa35143632669e0db1a16.tar.bz2 LibXtract-a6c2d64b740008f10ddfa35143632669e0db1a16.zip |
Added Max/MSP external to examples. There are problems (memory I think), but the basic code is there
Diffstat (limited to 'examples/MSP/Makefile')
-rw-r--r-- | examples/MSP/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/MSP/Makefile b/examples/MSP/Makefile new file mode 100644 index 0000000..d990d85 --- /dev/null +++ b/examples/MSP/Makefile @@ -0,0 +1,43 @@ +NAME=xtract~
+CSYM=xtract~
+
+all: universal
+current: universal
+
+MAXINCLUDE = /usr/local/include/max-includes
+MSPINCLUDE = /usr/local/include/msp-includes
+FRAMEWORKS = /Library/Frameworks
+INSTALLDIR = /Applications/MaxMSP\ 4.6/Cycling\ \'74/externals/
+
+LIPO = /usr/bin/lipo
+CC = gcc
+
+CFLAGS = -F$(FRAMEWORKS) -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -x c -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -fmessage-length=0 -I$(MAXINCLUDE) -I$(MSPINCLUDE) -include macho-prefix.h -Werror
+
+I386CFLAGS = -arch i386
+PPCCFLAGS = -arch ppc -faltivec -fasm-blocks
+
+LDFLAGS = -F$(FRAMEWORKS) -L$(MAXINCLUDE) -L$(MSPINCLUDE) -framework Carbon -framework MaxAPI -framework MaxAudioAPI -Wl,-Y,1455 -bundle -L/usr/local/lib -lxtract
+
+I386LDFLAGS = -arch i386
+PPCLDFLAGS = -arch ppc
+
+universal:
+ $(CC) $(CFLAGS) $(I386CFLAGS) -o $(NAME)-i386.o -c $(NAME).c
+# $(CC) $(CFLAGS) $(PPCCFLAGS) -o $(NAME)-ppc.o -c $(NAME).c
+ $(CC) $(LDFLAGS) $(I386LDFLAGS) -o $(NAME)-i386 $(NAME)-i386.o
+# $(CC) $(LDFLAGS) $(PPCLDFLAGS) -o $(NAME)-ppc $(NAME)-ppc.o
+# $(LIPO) -create $(NAME)-ppc $(NAME)-i386 -output $(NAME)
+ $(LIPO) -create $(NAME)-i386 -output $(NAME)
+ mkdir -p $(NAME).mxo/Contents/MacOS
+ cp Info.plist PkgInfo $(NAME).mxo/Contents/
+ cp $(NAME) $(NAME).mxo/Contents/MacOS
+
+clean:
+ rm -rf *i386* *ppc* xtract~ *.mxo
+
+maintainer-clean:
+ rm -rf *i386* *ppc* xtract~ *.mxo
+
+install:
+ $(INSTALL) cp -r $(NAME).mxo $(INSTALLDIR)
|