aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-25 22:18:35 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-25 22:18:35 +0000
commit98f74f98df3362409237e3ce0595d1ff276dd9c9 (patch)
tree36c19c8cf89504af4db315724005a53fe00cb66f
parentd27d9e33f19264c405979b49441f1d63b5b0e0ad (diff)
Makefile now compiles linux, but I had to remove -Werror
svn path=/trunk/externals/unauthorized/; revision=1035
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 4a56c14..e49ab11 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-EXT=pd_darwin
+EXT=pd_$(shell uname -s | sed -e 's/L/l/' | sed -e 's/D/d/')
-CC=gcc
+CC=gcc-2.95
# This is Miller's default install location
INSTALL_PREFIX=/usr/local/lib/pd
@@ -70,23 +70,22 @@ SGICFLAGS6 = -n32 -DPD -DUNIX -DIRIX -DN32 -woff 1080,1064,1185 \
# ----------------------- LINUX i386 -----------------------
-pd_linux: $(NAME).pd_linux
+pd_linux: $(TARGETS)
LINUXCFLAGS = -DPD -DUNIX -DICECAST -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wno-shadow -Wstrict-prototypes -g \
- -Wno-unused -Wno-parentheses -Wno-switch -Werror
+ -Wno-unused -Wno-parentheses -Wno-switch
LINUXINCLUDE = -I../../src -I../../pd/src
-.c.o:
- $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
+.tk.tk2c:
+ ./tk2c.bash < $*.tk > $*.tk2c
.c.pd_linux:
- ./tk2c.bash < $*.tk > $*.tk2c
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
strip --strip-unneeded $*.pd_linux
- rm $*.o
+ -rm $*.o
# ----------------------- Mac OSX -----------------------