소스 검색

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