annotate examples/MSP/Makefile @ 78:afb298ce1b4d

Fixes for MSP example, and changed the fundamental estimators so that if they don't get a samplerate 44100 is assumed (I'm not sure if this is a good idea!).
author Jamie Bullock <jamie@postlude.co.uk>
date Sun, 19 Aug 2007 16:54:25 +0000
parents 899c31350e8d
children 85329d9583b7
rev   line source
jamie@77 1 NAME=xtract~
jamie@77 2 CSYM=xtract~
jamie@77 3
jamie@77 4 all: universal
jamie@77 5 current: universal
jamie@77 6
jamie@77 7 MAXINCLUDE = /usr/local/include/max-includes
jamie@77 8 MSPINCLUDE = /usr/local/include/msp-includes
jamie@77 9 FRAMEWORKS = /Library/Frameworks
jamie@78 10 INSTALLDIR = /Applications/Audio/MaxMSP\ 4.6.3/Cycling\ \'74/externals/
jamie@77 11
jamie@77 12 LIPO = /usr/bin/lipo
jamie@77 13 CC = gcc
jamie@77 14
jamie@77 15 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
jamie@77 16
jamie@77 17 I386CFLAGS = -arch i386
jamie@78 18 PPCCFLAGS = -arch ppc -faltivec -fasm-blocks -Wno-unused
jamie@77 19
jamie@77 20 LDFLAGS = -F$(FRAMEWORKS) -L$(MAXINCLUDE) -L$(MSPINCLUDE) -framework Carbon -framework MaxAPI -framework MaxAudioAPI -Wl,-Y,1455 -bundle -L/usr/local/lib -lxtract
jamie@77 21
jamie@77 22 I386LDFLAGS = -arch i386
jamie@77 23 PPCLDFLAGS = -arch ppc
jamie@77 24
jamie@77 25 universal:
jamie@77 26 $(CC) $(CFLAGS) $(I386CFLAGS) -o $(NAME)-i386.o -c $(NAME).c
jamie@78 27 $(CC) $(CFLAGS) $(PPCCFLAGS) -o $(NAME)-ppc.o -c $(NAME).c
jamie@77 28 $(CC) $(LDFLAGS) $(I386LDFLAGS) -o $(NAME)-i386 $(NAME)-i386.o
jamie@78 29 $(CC) $(LDFLAGS) $(PPCLDFLAGS) -o $(NAME)-ppc $(NAME)-ppc.o
jamie@78 30 $(LIPO) -create $(NAME)-ppc $(NAME)-i386 -output $(NAME)
jamie@77 31 $(LIPO) -create $(NAME)-i386 -output $(NAME)
jamie@77 32 mkdir -p $(NAME).mxo/Contents/MacOS
jamie@77 33 cp Info.plist PkgInfo $(NAME).mxo/Contents/
jamie@77 34 cp $(NAME) $(NAME).mxo/Contents/MacOS
jamie@77 35
jamie@77 36 clean:
jamie@77 37 rm -rf *i386* *ppc* xtract~ *.mxo
jamie@77 38
jamie@77 39 maintainer-clean:
jamie@77 40 rm -rf *i386* *ppc* xtract~ *.mxo
jamie@77 41
jamie@77 42 install:
jamie@77 43 $(INSTALL) cp -r $(NAME).mxo $(INSTALLDIR)