From fb7ca734a3ef5622379596bcf659c52a28821aab Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 22 Aug 2003 08:15:00 +0000 Subject: added MSP-style package svn path=/trunk/externals/zexy/; revision=896 --- darwin_altpackage.pmsp | Bin 1138 -> 1661 bytes darwin_package.pmsp | Bin 1043 -> 1619 bytes src/makefile.darwin | 26 ++++++++++++++------------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/darwin_altpackage.pmsp b/darwin_altpackage.pmsp index 12570f9..132031a 100644 Binary files a/darwin_altpackage.pmsp and b/darwin_altpackage.pmsp differ diff --git a/darwin_package.pmsp b/darwin_package.pmsp index 8240370..458ead0 100644 Binary files a/darwin_package.pmsp and b/darwin_package.pmsp differ diff --git a/src/makefile.darwin b/src/makefile.darwin index 04c41dd..1b64407 100644 --- a/src/makefile.darwin +++ b/src/makefile.darwin @@ -19,6 +19,7 @@ INSTALL_PREFIX = /usr/local PDLIBDIR = /pd #these were the user adjustables +CC=gcc TARGETS = zexy \ z_connective z_pack z_multiplex z_drip \ @@ -42,7 +43,7 @@ TARGETS = zexy \ .SUFFIXES: .pd_darwin -LINUXOBJECTS = $(TARGETS:%=%.o) +MACOSXOBJECTS = $(TARGETS:%=%.o) ARCH = $(shell uname --machine) PD_DIR = $(DESTDIR)$(INSTALL_PREFIX)$(PDLIBDIR) @@ -53,11 +54,13 @@ endif LINCLUDE = -$(LINUXOBJECTS): *.h +$(MACOSXOBJECTS): *.h CFLAGS = -O2 -DMACOSX -Dunix -g -Wall-W -Wno-unused \ -Wno-parentheses -Wno-switch $(LINCLUDE) $(UCFLAGS) $(AFLAGS) +MACOSXLINKFLAGS = -bundle -undefined suppress -flat_namespace + everything: clean all install distclean distclean: @@ -72,16 +75,15 @@ clean: touch dummy.pd_darwin rm *.o *.pd_darwin -all: $(LINUXOBJECTS) +all: $(MACOSXOBJECTS) - @echo :: $(LINUXOBJECTS) + @echo :: $(MACOSXOBJECTS) - cc -bundle -undefined suppress -flat_namespace -o zexy.pd_darwin *.o -lc -lm + $(CC) $(MACOSXLINKFLAGS) -o zexy.pd_darwin *.o -lc -lm # strip -x zexy.pd_darwin .c.pd_darwin: - cc $(CFLAGS) -DPD $(INCLUDE) -c -o $*.o $*.c - + $(CC) $(CFLAGS) -DPD $(INCLUDE) -c -o $*.o $*.c install: installdocs install -m 644 zexy.pd_darwin $(PD_DIR)/extra @@ -91,16 +93,16 @@ installdocs: install -m644 ../examples/*.* $(PD_DIR)/doc/5.reference/zexy darwin_package: all - test -d ../installroot/doc/5.reference || mkdir -p ../installroot/doc/5.reference - -cp ../examples/* ../installroot/doc/5.reference - test -d ../installroot/extra || mkdir -p ../installroot/extra - install -m644 *.pd_darwin ../installroot/extra + test -d ../installroot/pd/doc/5.reference || mkdir -p ../installroot/pd/doc/5.reference + cp ../examples/* ../installroot/pd/doc/5.reference + test -d ../installroot/pd/extra || mkdir -p ../installroot/pd/extra + install -m644 --group=admin *.pd_darwin ../installroot/extra open ../darwin_package.pmsp darwin_altpackage: all test -d ../installroot/Help || mkdir -p ../installroot/Help -cp ../examples/* ../installroot/Help test -d ../installroot/Externals || mkdir -p ../installroot/Externals - install -m644 *.pd_darwin ../installroot/Externals + install -m644 *.pd_darwin --group=admin ../installroot/Externals open ../darwin_altpackage.pmsp -- cgit v1.2.1