diff options
Diffstat (limited to 'externals/Makefile')
-rw-r--r-- | externals/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/externals/Makefile b/externals/Makefile index 865cb135..26248222 100644 --- a/externals/Makefile +++ b/externals/Makefile @@ -86,6 +86,9 @@ endif CXXFLAGS = $(CFLAGS) +TCL_RUNTIME_VERSION=$(shell echo 'puts $$tcl_version' | tclsh) +TCL_HEADERS_VERSION=$(shell sed -n 's|^#define TCL_VERSION.*"\([0-9]\.[0-9][0-9]*\)".*|\1|p' /usr/include/tcl.h) + ### C++ files %.$(EXTENSION): %.cpp %.$(EXTENSION): %.cc @@ -139,6 +142,10 @@ else else # GNU/Linux, BSD, IRIX, etc. LIB_TARGETS += hid pdp pidip gem2pdp iem16 pdp_opengl pdvjtools postlude sixaxis + # externals that depend on Tcl 8.5 or greater + ifeq ($(TCL_HEADERS_VERSION),8.5) + LIB_TARGETS += tclpd + endif endif endif |