diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-02-11 16:29:43 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-02-11 16:29:43 +0000 |
commit | b8dbf1f3ff74c420606270bb83a2132778cc474c (patch) | |
tree | bf08dc9b976ab1c0aaf15e7a1ad93d031e436b99 /Makefile | |
parent | 2d7fc82de6a5671323b6d036a13d5061bb146790 (diff) |
kludge to get it to build on Fedora too
svn path=/trunk/externals/tclpd/; revision=10759
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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++ |