On Apr 12, 2005, at 8:34 PM, Patrick Pagano wrote:
hi James after getting headers for gsl in the right place i get
...gsl isn't needed strictly for pdp2gem compilation (but it is for pdp)...
...to make matters easier, below is the OSX makefile I used/hacked...
jamie
...... cut here ......
PD_DIR = ../../pd PDP_DIR = ../../pdp-0.12.4 GEM_DIR = ../../Gem
LIBS = -lm -lstdc++ GEM2PDP_VERSION = 0.6
GEM2PDP_DISTRO = /mnt/c/ydegoyon.free.fr/gem2pdp-$(GEM2PDP_VERSION) GEM2PDP_TARBALL = $(GEM2PDP_DISTRO).tar.gz # build flags
GEM2PDP_INCLUDE = -I$(PD_DIR)/src -I. -I$(PDP_DIR)/include
-I$(GEM_DIR)/src -I/sw/include
GEM2PDP_CPPFLAGS = -DPD -O0 -funroll-loops -fomit-frame-pointer
-ffast-math
-Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-long-double
-DGEM2PDP_VERSION="$(GEM2PDP_VERSION)" -g
PDP_PIDIP_CPPFLAGS = -O
all: pdp2gem.pd_darwin
pdp2gem.pd_darwin: pdp2gem.o yuv.o rm -f pdp2gem.pd_darwin g++ -bundle -bundle_loader $(PD_DIR)/bin/pd -o pdp2gem.pd_darwin pdp2gem.o yuv.o $(LIBS) # gcc -Wl,-bind_at_load -bundle -bundle_loader $(PD_DIR)/bin/pd -undefined define_a_way -o pdp2gem.pd_darwin pdp2gem.o yuv.o $(LIBS) # g++ -bundle -bundle_loader $(PD_DIR)/bin/pd -undefined dynamic_lookup -o pdp2gem.pd_darwin pdp2gem.o yuv.o $(LIBS) # g++ -bundle -undefined dynamic_lookup -o pdp2gem.pd_darwin pdp2gem.o yuv.o $(LIBS)
gem2pdp.pd_darwin: gem2pdp.o yuv.o rm -f gem2pdp.pd_darwin gcc -bundle -flat_namespace -undefined suppress -o gem2pdp.pd_darwin gem2pdp.o yuv.o $(LIBS)
clean: rm -f *.o rm -f gem2pdp.pd_* rm -f pdp2gem.pd_*
distro: clean all rm *.o strip --strip-unneeded gem2pdp.pd_linux cd .. && cp -rf gem2pdp /tmp/gem2pdp-$(GEM2PDP_VERSION) cd /tmp && tar vczf $(GEM2PDP_TARBALL) gem2pdp-$(GEM2PDP_VERSION) cp /mnt/c/ydegoyon.free.fr/gem2pdp-$(GEM2PDP_VERSION).tar.gz /mnt/c/Yves rm -rf /tmp/gem2pdp-$(GEM2PDP_VERSION)
.cpp.o: cat $(PDP_DIR)/include/pdp.h | grep -v m_pd > pdp-light.h g++ $(GEM2PDP_CPPFLAGS) $(GEM2PDP_INCLUDE) -o $*.o -c $*.cpp
.c.o: cat $(PDP_DIR)/include/pdp.h | grep -v m_pd > pdp-light.h gcc $(GEM2PDP_CPPFLAGS) $(GEM2PDP_INCLUDE) -o $*.o -c $*.c
install: cp -f --remove-destination *.pd $(PD_DIR)/doc/5.reference