This repository has been archived by the owner on Nov 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.build
141 lines (103 loc) · 3.73 KB
/
Makefile.build
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
include Makefile.config
ifdef HAS_GPRBUILD2014
GNATMAKE = gnatmake
endif
GPRBUILD_FLAGS = -p $(SMP_MFLAGS)
ALL_TARGETS = league xml fastcgi servlet spikedog-api spikedog-core soap wsse\
wsdl2ada sql uaflex
ifdef HAS_ASIS
ALL_TARGETS += a2js
endif
ifdef HAS_AWS
ALL_TARGETS += spikedog-aws
ifeq ($(OPERATING_SYSTEM), Windows)
ALL_TARGETS += spikedog-service
endif
endif
ifdef ENABLE_AMF
ALL_TARGETS += amf dd uml mofext ocl utp
endif
ifdef HAS_FIREBIRD
ALL_TARGETS += firebird
endif
ifdef HAS_MYSQL
ALL_TARGETS += mysql
endif
ifdef HAS_OCI
ALL_TARGETS += oci
endif
ifdef HAS_POSTGRESQL
ALL_TARGETS += postgresql
endif
ifdef HAS_SQLITE3
ALL_TARGETS += sqlite3
endif
all: $(ALL_TARGETS)
league:
ifdef HAS_GPRBUILD2014
ifneq (, $(findstring x86,$(ARCHITECTURE)))
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86_utilities.adb
ifeq ($(ARCHITECTURE), x86)
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-simd-intel-sse.adb
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-simd-intel-sse2.ads
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-generic_x86_sse2.adb
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86-sse2.ads
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86-sse2_popcnt.ads
endif
ifeq ($(ARCHITECTURE), x86_64)
$(GNATMAKE) -p -c -u -Pgnat/matreshka_league.gpr matreshka-internals-strings-handlers-x86_64_popcnt.ads
endif
endif
endif
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_league.gpr
xml: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_xml.gpr
fastcgi: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_fastcgi.gpr
servlet: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_servlet.gpr
spikedog-api:
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_spikedog_api.gpr
spikedog-core:
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_spikedog_core.gpr
spikedog-aws:
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_spikedog_aws.gpr -XAWS_BUILD=$(AWS_BUILD) -XXMLADA_BUILD=relocatable
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_spikedog_awsd.gpr -XAWS_BUILD=$(AWS_BUILD) -XXMLADA_BUILD=relocatable
spikedog-service:
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_spikedog_service.gpr -XAWS_BUILD=relocatable -XXMLADA_BUILD=relocatable
soap: league xml
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_soap.gpr
wsse: soap
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_soap_wsse.gpr
wsdl2ada: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_wsdl2ada.gpr
a2js: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_a2js.gpr
sql: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql.gpr
firebird: league sql
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql_firebird.gpr
mysql: league sql
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql_mysql.gpr
oci: league sql
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql_oracle.gpr
postgresql: league sql
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql_postgresql.gpr
sqlite3: league sql
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_sql_sqlite3.gpr
amf: league xml
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf.gpr
dd: league xml amf
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf_dd.gpr
uml: league xml amf
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf_uml.gpr
mofext: league xml amf uml
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf_mofext.gpr
ocl: league xml amf uml
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf_ocl.gpr
utp: league xml amf uml
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_amf_utp.gpr
uaflex: league
$(GPRBUILD) $(GPRBUILD_FLAGS) -Pgnat/matreshka_uaflex.gpr
# Disable parallel build, it is handled by gnatmake/gprbuild
.NOTPARALLEL: