From 0a4cf1cefef81f680361161f6d27770f37239a48 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 25 Sep 2003 22:25:11 +0000 Subject: cleaned up for MacOS X svn path=/trunk/externals/unauthorized/; revision=1036 --- Makefile | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index e49ab11..132f08d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ EXT=pd_$(shell uname -s | sed -e 's/L/l/' | sed -e 's/D/d/') -CC=gcc-2.95 +CC=gcc # This is Miller's default install location INSTALL_PREFIX=/usr/local/lib/pd @@ -36,6 +36,12 @@ PDNTLIB = $(PDNTLDIR)\libc.lib \ # need to find a way to replace $(CSYM) # link /dll /export:$(CSYM)_setup $*.obj $(PDNTLIB) +# ----------------------- UNIX Common --------------------- + +.tk.tk2c: + ./tk2c.bash < $*.tk > $*.tk2c + + # ----------------------- IRIX 5.x ----------------------- pd_irix5: $(NAME).pd_irix5 @@ -78,9 +84,6 @@ LINUXCFLAGS = -DPD -DUNIX -DICECAST -O2 -funroll-loops -fomit-frame-pointer \ LINUXINCLUDE = -I../../src -I../../pd/src -.tk.tk2c: - ./tk2c.bash < $*.tk > $*.tk2c - .c.pd_linux: $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm @@ -104,24 +107,12 @@ DARWINLINKFLAGS = -bundle -undefined suppress -flat_namespace DARWININCLUDE = -I../../src -I../../pd/src -I/sw/include -.c.osx: - $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c - -.tk.tk2c: - ./tk2c.bash < $*.tk > $*.tk2c - .c.pd_darwin: $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o $*.o -c $*.c $(CC) $(DARWINLINKFLAGS) -o $*.pd_darwin $*.o chmod a-x "$*.pd_darwin" -rm $*.o -# %.pd_darwin: %.c -# $(CC) $(DARWINCFLAGS) $(DARWININCLUDE) -o "$*.o" -c "$*.c" -# $(CC) $(DARWINLINKFLAGS) -o "$*.pd_darwin" "$*.o" -lc -lm -# chmod a-x "$*.pd_darwin" -# rm -f "$*.o" - # added by Hans-Christoph Steiner # to generate MacOS X packages -- cgit v1.2.1