aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-25 22:25:11 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-25 22:25:11 +0000
commit0a4cf1cefef81f680361161f6d27770f37239a48 (patch)
treec343765608d5ffafbd8a6fee93c234b998996e50
parent98f74f98df3362409237e3ce0595d1ff276dd9c9 (diff)
cleaned up for MacOS X
svn path=/trunk/externals/unauthorized/; revision=1036
-rw-r--r--Makefile23
1 files 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 <hans@eds.org>
# to generate MacOS X packages