cosmetix
[k8-i-v-a-n.git] / Jamrules
blobaa0c5d299f41e59523f163f18fe3ec038bccc202
1 if ! $(THIS_IS_K8JAM) {
2   Exit "You need k8jam to build I.V.A.N.! Download it here: http://repo.or.cz/w/k8jam.git" ;
4 include $(TOP)/Jamrules.configure ;
6 set-profile ;
7 set-default-locations ;
9 OPTIM.all += -Wno-narrowing ;
11 if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
13 HDRS += $(TOP)/src/felib ;
16 if $(PREFIX) {
17   IVAN_DATA_DIR = share/ivan ;
18 } else {
19   IVAN_DATA_DIR = ;
22 if $(IVAN_DATA_DIR) {
23   DEFINES += "IVAN_DATA_DIR=\\\"$(PREFIX)/$(IVAN_DATA_DIR)\\\"" ;
26 #HAVE_LIBPNG = ;
29 rule C++SDLMain {
30   local n ;
32   for n in $(<) {
33     #echo "$(n:S)" ;
34     C++Main "$(<)$(SUFEXE)" : $(>) ;
35     C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
36     LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
37   }
41 if ! $(NOGDB) {
42   OPTIM.all += -g ;
43   LINKFLAGS.all += -g ;
44 } else {
45   OPTIM.all += -s ;
46   LINKFLAGS.all += -s ;
50 softinclude $(TOP)/Jamrules.local ;
51 softinclude $(TOP)/Jamrules.local.k8 ;
52 softinclude $(TOP)/Jamrules.libs ;
53 softinclude $(TOP)/Jamrules.install ;