aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-13 15:55:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-13 15:55:29 +0000
commitacc57856c6188d2f13b140c4fcdbbfd1852fce09 (patch)
treef16e554a908ba4fe057f32d5166a4894dc472965 /Makefile
parentb8dbf1f3ff74c420606270bb83a2132778cc474c (diff)
removed my Tcl 8.4 kludge
svn path=/trunk/externals/tclpd/; revision=11762
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 57ecd8d..7395ed7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
#!/usr/bin/make
-TCL_VERSION := $(shell (ls -1d /usr/include/tcl8.? | sed -n 's|.*/tcl\(8\.[0-9][0-9]*\).*|\1|p') || echo "")
-TCL_INCLUDES := -I$(shell find /usr/include -name tcl.h | grep -v private | sed 's|/tcl.h$$||')
-INCLUDES = -I../../pd/src -I/usr/include $(TCL_INCLUDES)
+TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
+INCLUDES = -I../../pd/src -I/usr/include -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++