From b8dbf1f3ff74c420606270bb83a2132778cc474c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 11 Feb 2009 16:29:43 +0000 Subject: kludge to get it to build on Fedora too svn path=/trunk/externals/tclpd/; revision=10759 --- Makefile | 5 +++-- 1 file 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++ -- cgit v1.2.1