aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++