aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-03-13 18:27:57 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2008-03-13 18:27:57 +0000
commit3d0eac12fe702bf72dbd2172962a8a98c4f56b54 (patch)
tree986084fc1ec03c2e5ad96f18c43592594a7f7edc /Makefile
parentf3e255ddca6468b6adea0f10f30540c37cdde9ad (diff)
checked in some build hacks which make things build on all GNU/Linuxes
svn path=/trunk/externals/tclpd/; revision=9580
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5c97c54..7fc0d7e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
#!/usr/bin/make
-CPU=athlon-xp
-CFLAGS += -I/usr/include -I. -xc++ -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -mtune=$(CPU) -march=$(CPU) -Wall -Wno-unused -Wunused-variable -Wno-strict-aliasing -g -fPIC -I.
-LDSOFLAGS += -lm -L/usr/lib -ltcl8.5 -L/usr/X11R6/lib
+TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
+INCLUDES = -I../../pd/src -I/usr/include/tcl$(TCL_VERSION)
+CFLAGS += $(INCLUDES) -xc++ -funroll-loops -fno-operator-names -fno-omit-frame-pointer -falign-functions=16 -O2 -Wall -fPIC
+LDSOFLAGS += -lm -ltcl$(TCL_VERSION)
CXX = g++
OS = linux
LDSHARED = $(CXX) $(PDBUNDLEFLAGS)
@@ -16,7 +17,7 @@ clean::
ifeq ($(OS),darwin)
PDSUF = .pd_darwin
- PDBUNDLEFLAGS = -bundle -flat_namespace -undefined suppress
+ PDBUNDLEFLAGS = -bundle -flat_namespace -undefined dynamic_lookup
else
ifeq ($(OS),nt)
PDSUF = .dll
@@ -34,5 +35,4 @@ tcl.pd_linux: tcl_wrap.cxx tcl_extras.cxx tcl_loader.cxx tcl_extras.h Makefile
tcl_wrap.cxx tcl_extras.cxx tcl_loader.cxx $(LDSOFLAGS)
tcl_wrap.cxx: tcl.i tcl_extras.h
- swig -v -c++ -tcl -o tcl_wrap.cxx -I/usr/include -I/usr/local/include tcl.i
-
+ swig -v -c++ -tcl -o tcl_wrap.cxx $(INCLUDES) tcl.i