current: pd_darwin clean: ; rm -f *.o *.pd_darwin # ----------------------- Mac OSX ----------------------- # You'll have to set the environment variable # MACOSX_DEPLOYMENT_TARGET=10.3 pd_darwin: clr.pd_darwin .SUFFIXES: .pd_darwin PDPATH=/Users/thomas/Develop/pd/devel_0_39 MONO=/Library/Frameworks/Mono.Framework CFLAGS += -DPD -O2 # where is the PD executable? PD=$(PDPATH)/bin/pd LDFLAGS=-framework Mono INCLUDE = -I$(MONO)/Headers -I$(MONO)/Headers/glib-2.0 -I$(MONO)/Libraries/glib-2.0/include -I$(PDPATH)/src # new version OPTIONS = -dynamiclib -undefined dynamic_lookup # old version #OPTIONS = -bundle -bundle_loader $(PD) .cpp.pd_darwin: g++ $(OPTIONS) $(INCLUDE) $(CFLAGS) $(LDFLAGS) -o $*.pd_darwin $*.cpp