PD_DIR = /Users/marius/pd/src GEM_DIR = /Users/marius/Gem/src LIBS = -lm -L/sw/lib -ldl -lz -lm -lpthread -dynamiclib -undefined dynamic_lookup # build flags INCLUDE = -I$(PD_DIR) -I. -I$(GEM_DIR) -I/sw/include CPPFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math \ -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -g \ -c -fPIC -freg-struct-return -Os -falign-loops=32 -falign-functions=32 -falign-jumps=32 -mmmx -fpascal-strings all: test.pd_darwin rm -f *.o .SUFFIXES: .pd_darwin clean: rm -f *.o rm -f *.pd_darwin .cpp.o: g++ $(CPPFLAGS) $(INCLUDE) -o $*.o -c $*.cpp .cpp.pd_darwin: g++ $(CPPFLAGS) $(INCLUDE) -o $*.o -c $*.cpp g++ -o $*.pd_darwin $*.o $(LIBS) rm -f *.o