new wizard command to change character team (hehe, assign imperialist to monster...
[k8-i-v-a-n.git] / Jamrules.defines
blobea3c9b1bd673cd4c9290af8e4262d8e0e5c8ab73
1 #####################################################################
2 # game defines
3 DEFINES += WIZARD ;
6 if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
9 if ! $(GLOBAL_SAVES) {
10   Echo "MSG: using local saves" ;
11   DEFINES += LOCAL_SAVES ;
15 if $(DISABLE_IMLIB2) {
16   if ($HAVE_IMLIB2) {
17     Echo "MSG: disabling imlib2" ;
18     HAVE_IMLIB2 = ;
19   }
23 if $(DISABLE_LIBPNG) {
24   if ($HAVE_LIBPNG) {
25     Echo "MSG: disabling libpng" ;
26     HAVE_LIBPNG = ;
27   }
31 if $(USE_SOUND) {
32   Echo "MSG: sound support enabled" ;
33   #LINKLIBS += -lSDL_mixer ;
34   #C++LINKLIBS += -lSDL_mixer ;
35 } else {
36   Echo "MSG: sound support disabled; USE_SOUND=1 will enable it" ;
37   DEFINES += DISABLE_SOUND ;
41 if $(HAVE_IMLIB2) {
42   Echo "MSG: imlib2 found" ;
43   lib-config "pkg-config imlib2" ;
44   DEFINES += HAVE_IMLIB2 ;
48 if $(HAVE_LIBPNG) {
49   Echo "MSG: libpng found" ;
50   lib-config "pkg-config libpng" ;
51   DEFINES += HAVE_LIBPNG ;
55 if $(HAVE_IMLIB2) || $(HAVE_LIBPNG) {
56   if $(ENABLE_PNG_SHOTS) {
57     Echo "MSG: savegame screenshots will be in PNG format" ;
58   } else {
59     Echo "MSG: savegame screenshots will be in internal format" ;
60     DEFINES += SGAME_SHOTS_IPU ;
61   }
64 if $(WINDOZE) { HAVE_ZLIB = tan ; }
65 if $(DISABLE_ZLIB) { HAVE_ZLIB = ; }
67 if $(HAVE_ZLIB) {
68   Echo "MSG: support for compressed saves turned on" ;
69   DEFINES += USE_ZLIB ;