From 3b9c9339d0650879b7f5e58952a6f0d32d33c497 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sun, 1 Jun 2008 18:27:06 +0000 Subject: added pd_darwin build targets and fixed paths for svn file locations svn path=/trunk/externals/k_jack~/; revision=9961 --- makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index e382213..b7a5c34 100644 --- a/makefile +++ b/makefile @@ -66,7 +66,7 @@ LINUXCFLAGS = -DPD -DUNIX -O2 -funroll-loops -fomit-frame-pointer \ -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch -PDSRCDIR=../../../src +PDSRCDIR=../../pd/src LINUXINCLUDE = -I$(PDSRCDIR) .c.pd_linux: @@ -76,10 +76,22 @@ LINUXINCLUDE = -I$(PDSRCDIR) rm -f $*.o ../$*.pd_linux ln -s $*/$*.pd_linux .. -# ---------------------------------------------------------- +# ----------------------- Mac OSX ----------------------- + +pd_darwin: $(NAME).pd_darwin -install: - cp help-*.pd ../../doc/5.reference +.SUFFIXES: .pd_darwin + +DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \ + -Wno-unused -Wno-parentheses -Wno-switch + +.c.pd_darwin: + $(CC) $(DARWINCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c + $(CC) -bundle -bundle_loader ../../pd/bin/pd -undefined dynamic_lookup \ + -o $*.pd_darwin $*.o + rm -f $*.o + +# ---------------------------------------------------------- clean: rm -f *.o *.pd_* so_locations *~ -- cgit v1.2.1