From 2d7fc82de6a5671323b6d036a13d5061bb146790 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 5 Feb 2009 22:04:55 +0000 Subject: 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1