`RandomChance` type, and two new item fields: `MagicEffectChance`, `MagicEffectDuration`
[k8-i-v-a-n.git] / Jamrules
blob143d345ccfef8cc30324b8fac92de9c289d3616d
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 ;
8 C++.standard = "-std=gnu++14" ;
10 OPTIM.all += -Wno-narrowing ;
11 OPTIM.all += -Wno-misleading-indentation ; # fuck off
13 if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
15 HDRS += $(TOP)/src/felib ;
18 if $(PREFIX) {
19   IVAN_DATA_DIR = share/ivan ;
20 } else {
21   IVAN_DATA_DIR = ;
24 if $(IVAN_DATA_DIR) {
25   DEFINES += "IVAN_DATA_DIR=\\\"$(PREFIX)/$(IVAN_DATA_DIR)\\\"" ;
28 #HAVE_LIBPNG = ;
31 rule C++SDLMain {
32   local n ;
34   for n in $(<) {
35     #echo "$(n:S)" ;
36     C++Main "$(<)$(SUFEXE)" : $(>) ;
37     C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
38     LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
39   }
43 if ! $(NOGDB) {
44   OPTIM.all += -g ;
45   LINKFLAGS.all += -g ;
46 } else {
47   OPTIM.all += -s ;
48   LINKFLAGS.all += -s ;
52 softinclude $(TOP)/Jamrules.local ;
53 softinclude $(TOP)/Jamrules.local.k8 ;
54 softinclude $(TOP)/Jamrules.libs ;
55 softinclude $(TOP)/Jamrules.install ;