aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-05 22:04:55 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-05 22:04:55 +0000
commit2d7fc82de6a5671323b6d036a13d5061bb146790 (patch)
treeb155dd787e53398be151e717639bb4ce82ac2fb1 /Makefile
parentb5617ce1bf2361f38712ba130bc87d04c752d931 (diff)
added more robust test for Tcl version so that you can have Tcl/Tk 8.5 installed (for running Pd-devel) yet still build against Tcl/Tk 8.4 (for all other Pd versions)
svn path=/trunk/externals/tclpd/; revision=10743
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7395ed7..0576e14 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make
-TCL_VERSION := $(shell echo 'puts $$tcl_version' | tclsh)
+TCL_VERSION := 8.$(shell ls -1d /usr/include/tcl8.? | cut -d . -f 2)
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)