浏览代码

Don't compile NVIZ if Tcl/Tk isn't enabled

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31326 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 17 年之前
父节点
当前提交
38a4be8ce1
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. 6 7
      visualization/Makefile

+ 6 - 7
visualization/Makefile

@@ -2,19 +2,18 @@ MODULE_TOPDIR = ..
 
 SUBDIRS =
 
-OPENGLBASED = nviz
-MOTIFBASED = xganim
-
 include $(MODULE_TOPDIR)/include/Make/Platform.make
 
-#compile if OPENGLBASED present:
+#compile if OpenGL and Tcl/Tk present:
 ifneq ($(strip $(OPENGLLIB)),)
-    SUBDIRS += $(OPENGLBASED)
+ifneq ($(strip $(TCLTKLIBS)),)
+    SUBDIRS += nviz
+endif
 endif
 
-#compile if MOTIFBASED present:
+#compile if Motif present:
 ifneq ($(strip $(XMLIB)),)
-    SUBDIRS += $(MOTIFBASED)
+    SUBDIRS += xganim
 endif
 
 include $(MODULE_TOPDIR)/include/Make/Dir.make