Not hardcoding tcl version and Debian detection
[tas-yagle.git] / distrib / share / etc / Linux.mk
index e0ca79b5adb8fb308d736ef14d2c63dd7191fc60..76a4eb912270aba554e38d2d51d9b65a72f14b6a 100644 (file)
@@ -81,10 +81,17 @@ CPLUSPLUS        = /usr/bin/g++
 CFLAGS           =
 CPPFLAGS         =
 
+# tcl dir is a symlink to the current version (tcl8.6), better for future
 ifeq ($(findstring Ubuntu,$(shell uname -v)),Ubuntu)
-  CC            += -I/usr/include/tcl8.5 
-  SCC           += -I/usr/include/tcl8.5 
-  CPLUSPLUS     += -I/usr/include/tcl8.5 
+  CC            += -I/usr/include/tcl
+  SCC           += -I/usr/include/tcl
+  CPLUSPLUS     += -I/usr/include/tcl
+endif
+
+ifeq ($(findstring Debian,$(shell uname -v)),Debian)
+  CC            += -I/usr/include/tcl
+  SCC           += -I/usr/include/tcl
+  CPLUSPLUS     += -I/usr/include/tcl
 endif
 
 ifeq ($(PACKAGING_TOP),)