aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-11 16:29:43 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-02-11 16:29:43 +0000
commitb8dbf1f3ff74c420606270bb83a2132778cc474c (patch)
treebf08dc9b976ab1c0aaf15e7a1ad93d031e436b99 /Makefile
parent2d7fc82de6a5671323b6d036a13d5061bb146790 (diff)
kludge to get it to build on Fedora too
svn path=/trunk/externals/tclpd/; revision=10759
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0576e14..57ecd8d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
#!/usr/bin/make
-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)
+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)
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++