added 'jam config' script; build system fixes
[k8-i-v-a-n.git] / Jamrules
blob169388622f8156d60a96135906dfee3ec1c7c8ff
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" ;
5 set-profile ;
6 set-default-locations ;
8 OPTIM.all += -Wno-narrowing ;
10 HDRS += $(TOP)/src/felib ;
13 HAVE_LIBPNG = ;
16 rule C++SDLMain {
17   local n ;
19   for n in $(<) {
20     #echo "$(n:S)" ;
21     C++Main "$(<)$(SUFEXE)" : $(>) ;
22     C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
23     LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
24   }
28 if ! $(NOGDB) {
29   OPTIM.all += -g ;
30   LINKFLAGS.all += -g ;
31 } else {
32   OPTIM.all += -s ;
33   LINKFLAGS.all += -s ;
37 softinclude $(TOP)/Jamrules.local ;
38 softinclude $(TOP)/Jamrules.local.k8 ;
39 softinclude $(TOP)/Jamrules.configure ;
40 softinclude $(TOP)/Jamrules.libs ;
41 softinclude $(TOP)/Jamrules.install ;
42 softinclude $(TOP)/Jamrules.push ;
43 include $(TOP)/Jamrules.defines ;