summaryrefslogtreecommitdiff
path: root/test/simple/config.mak
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-12 22:00:54 +0000
committerscuri <scuri>2010-06-12 22:00:54 +0000
commit6cc4fd9f87137f98096cb53c6fbccd9e45b06d03 (patch)
tree3e432a79ef69b668829be362109d76178aa3e9cc /test/simple/config.mak
parentb96555cd065542fba0379750c87122e54f398313 (diff)
*** empty log message ***
Diffstat (limited to 'test/simple/config.mak')
-rw-r--r--test/simple/config.mak26
1 files changed, 18 insertions, 8 deletions
diff --git a/test/simple/config.mak b/test/simple/config.mak
index bf10d3b..5b84629 100644
--- a/test/simple/config.mak
+++ b/test/simple/config.mak
@@ -1,12 +1,22 @@
-APPNAME = simple
+APPNAME := simple
-ifdef USE_GDK
- APPNAME = simplegdk
- USE_GTK = Yes
-else
- DEFINES = USE_CONTEXTPLUS
+ifdef GTK_DEFAULT
+ ifdef USE_MOTIF
+ # Build Motif version in Linux,Darwin,FreeBSD
+ APPNAME := $(APPNAME)mot
+ else
+ GDK_CAIRO = Yes
+ endif
+else
+ ifdef USE_GTK
+ # Build GTK version in IRIX,SunOS,AIX,Win32
+ APPNAME := $(APPNAME)gtk
+ GDK_CAIRO = Yes
+ endif
endif
+DEFINES = USE_CONTEXTPLUS
+
SRC = simple.c simple_led.c iupmain.c
#DBG = Yes
@@ -31,7 +41,7 @@ USE_STATIC = Yes
ifneq ($(findstring Win, $(TEC_SYSNAME)), )
LIBS = cdpdf pdflib
- ifndef USE_GDK
+ ifndef GDK_CAIRO
LIBS += cdcontextplus gdiplus
endif
else
@@ -42,7 +52,7 @@ else
endif
SLIB = $(CDLIB)/libcdpdf.a $(CDLIB)/libpdflib.a
- ifndef USE_GDK
+ ifndef GDK_CAIRO
SLIB += $(CDLIB)/libcdcontextplus.a
LIBS = Xrender Xft
else