Worldmaps reset ambient light.
[supertux.git] / Jamrules
1 if ! $(top_builddir)
2 {
3     top_builddir = $(TOP) ;
4 }
5 top_srcdir = $(TOP) ;
6
7 # unset some stuff defined in Jambase
8 LEX = ;
9
10 JAMCONFIG ?= $(top_builddir)/Jamconfig ;
11 include $(JAMCONFIG) ;
12 if ! $(JAMCONFIG_READ)
13 {
14   EXIT "Couldn't find config. Please run 'configure' first." ;
15 }
16
17 if $(USE_STLPORT_DEBUG)
18 {
19   CXXFLAGS += -I/usr/include/stlport ;
20   CXXFLAGS += -D_STLP_DEBUG=1 -D_STLP_DEBUG_UNINITIALIZED=1 ;
21   CXXFLAGS += -D_STLP_SHRED_BYTE=0xA3 ;
22   LIBS += -lstlport_gcc_debug ;
23 }
24
25 switch $(VARIANT) {
26     case optimize :
27         CFLAGS += -Wall -O3 -g ;
28         CXXFLAGS += -Wall -O3 -g ;
29         LIBS += -g ;
30     case debug :
31         CFLAGS += -Wall -W -Werror -O0 -g3 -DDEBUG ;
32         CXXFLAGS += -Wall -W -Werror -O0 -g3 -DDEBUG ;
33         LIBS += -g3 ;
34     case profile :
35         CFLAGS += -Wall -W -O3 -g3 -pg ;
36         CXXFLAGS += -Wall -W -O3 -g3 -pg ;
37         LIBS += -g3 -pg ;
38     case * :
39         EXIT "Invalid variant $(VARIANT) selected" ;
40 }
41
42 LINK = $(CXX) ;
43
44 # Include build rules
45 include $(TOP)/mk/jam/build.jam ;
46
47 # Include Dirs
48 IncludeDir $(top_builddir) ; # for config.h
49 IncludeDir $(top_srcdir)/src ;
50
51 if $(XGETTEXT) != ""
52 {
53     actions XGetText
54     {
55         $(XGETTEXT) $(XGETTEXT_FLAGS) -o $(<) "$(>)"
56     }
57     rule MakePot
58     {
59       if $(>) {
60         XGetText $(<) : $(>) ;
61         Depends $(<) : $(>) ;
62         Depends all : $(<) ;
63       }
64     }
65 } else {
66     rule MakePot
67     { }
68 }
69