mango can be generated now (rarer than bananas)
[k8-i-v-a-n.git] / Jamrules
blobd06d6aad6d086d2e192a32650e304b44cc808e8b
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 ;
10 OPTIM.all += -Wno-misleading-indentation ; # fuck off
12 if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
14 HDRS += $(TOP)/src/felib ;
17 if $(PREFIX) {
18   IVAN_DATA_DIR = share/ivan ;
19 } else {
20   IVAN_DATA_DIR = ;
23 if $(IVAN_DATA_DIR) {
24   DEFINES += "IVAN_DATA_DIR=\\\"$(PREFIX)/$(IVAN_DATA_DIR)\\\"" ;
27 #HAVE_LIBPNG = ;
30 rule C++SDLMain {
31   local n ;
33   for n in $(<) {
34     #echo "$(n:S)" ;
35     C++Main "$(<)$(SUFEXE)" : $(>) ;
36     C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
37     LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
38   }
42 if ! $(NOGDB) {
43   OPTIM.all += -g ;
44   LINKFLAGS.all += -g ;
45 } else {
46   OPTIM.all += -s ;
47   LINKFLAGS.all += -s ;
51 softinclude $(TOP)/Jamrules.local ;
52 softinclude $(TOP)/Jamrules.local.k8 ;
53 softinclude $(TOP)/Jamrules.libs ;
54 softinclude $(TOP)/Jamrules.install ;