-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJamrules
55 lines (40 loc) · 1.02 KB
/
Jamrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if ! $(THIS_IS_K8JAM) {
Exit "You need k8jam to build I.V.A.N.! Download it here: http://repo.or.cz/w/k8jam.git" ;
}
include $(TOP)/Jamrules.configure ;
set-profile ;
set-default-locations ;
C++.standard = "-std=gnu++14" ;
OPTIM.all += -Wno-narrowing ;
OPTIM.all += -Wno-misleading-indentation ; # fuck off
if $(DEBUG) { DEFINES += DEBUG_BUILD ; }
HDRS += $(TOP)/src/felib ;
if $(PREFIX) {
IVAN_DATA_DIR = share/ivan ;
} else {
IVAN_DATA_DIR = ;
}
if $(IVAN_DATA_DIR) {
DEFINES += "IVAN_DATA_DIR=\\\"$(PREFIX)/$(IVAN_DATA_DIR)\\\"" ;
}
#HAVE_LIBPNG = ;
rule C++SDLMain {
local n ;
for n in $(<) {
#echo "$(n:S)" ;
C++Main "$(<)$(SUFEXE)" : $(>) ;
C++LINKLIBS on "$(<)$(SUFEXE)" += -lm ;
LinkLibraries "$(<)$(SUFEXE)" : libfelib.a ;
}
}
if ! $(NOGDB) {
OPTIM.all += -g ;
LINKFLAGS.all += -g ;
} else {
OPTIM.all += -s ;
LINKFLAGS.all += -s ;
}
softinclude $(TOP)/Jamrules.local ;
softinclude $(TOP)/Jamrules.local.k8 ;
softinclude $(TOP)/Jamrules.libs ;
softinclude $(TOP)/Jamrules.install ;