-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.inc
299 lines (282 loc) · 5.36 KB
/
Makefile.inc
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# Makefile.inc. Generated from Makefile.inc.in by configure.
VERSION=1.0
build=i686-pc-linux-gnu
target=i686-pc-linux-gnu
CC=gcc
CFLAGS=-march=i686
TARGET_CC=gcc -b i686-pc-linux-gnu
TARGET_CFLAGS=-march=i686
CYCDIR=/home/kjam/cyclone
prefix=/usr/local
exec_prefix=${prefix}
INC_INSTALL=${prefix}/include/cyclone
BIN_INSTALL=${exec_prefix}/bin
LIB_INSTALL=${exec_prefix}/lib/cyclone
RANLIB=ranlib
TARGET_RANLIB=ranlib
TARGET_AR=ar
EXE=
O=o
LDFLAGS=
SIZEOF_WCHAR_T=4
WCHAR_T_UNSIGNED=0
BANSHEE=/home/kjam/cyclone/banshee
BANSHEEENGINEDIR=$(BANSHEE)/engine
BANSHEEREGIONDIR=$(BANSHEE)/libcompat
HAVE_PTHREAD=yes
HAVE_PCRE=no
LIBPCRE=
HAVE_SQLITE3=no
LIBSQLITE3=
HAVE_SSL=no
LIBSSL=
SHELL=/bin/sh
A=a
# What we do when using VC++
ifdef MS
O=obj
A=lib
endif
# needed for booting
CYCLONE_BOOT_LIBS:=ap\
apq\
arg\
assert\
buffer\
core\
dict\
filename\
fn\
graph\
hashtable\
iter\
lexing\
lineno\
list\
position\
pp\
printf\
scanf\
set\
sexp\
slowdict\
string\
xarray\
xp
# other bits of the standard library
CYCLONE_LIBS:=array\
base64\
bitvec\
execinfo\
getopt\
getopt1\
queue\
rope\
splay\
tmp
CYCLONE_H:=ap.h\
apq.h\
arg.h\
array.h\
assert.h\
base64.h\
binding.h\
bitvec.h\
buffer.h\
callgraph.h\
core.h\
currgn.h\
crypt.h\
dict.h\
execinfo.h\
filename.h\
fn.h\
gc_ifc.h\
getopt.h\
hashtable.h\
interproc.h\
bansheeif.h\
iter.h\
lexing.h\
lineno.h\
list.h\
position.h\
pp.h\
queue.h\
rope.h\
set.h\
sexp.h\
slowdict.h\
splay.h\
string.h\
strings.h\
sys/cioctl.h\
sys/ioctl.h\
xarray.h\
xp.h\
warn.h\
flags.h\
lower.h\
subtype.h
#need this in CYCLONE_SRCS
BANSHEE_IF:=bansheeif
BANSHEE_STUB:=bansheeif_stub
CYCLONE_SRCS:=absyn\
warn\
flags\
kinds\
parse_tab\
parse_errors\
lex\
absynpp\
absyndump\
tcenv\
unify\
attributes\
tcutil\
tctyp\
tcstmt\
tcpat\
tcexp\
formatstr\
evexp\
callgraph\
tc\
currgn\
binding\
interproc\
jump_analysis\
cf_flowinfo\
new_control_flow\
assndef\
pratt_prover\
vcgen\
insert_checks\
toc\
remove_aggregates\
remove_labels\
toseqc\
tovc\
low_treeshake\
rename_temps\
remove_casts\
interface\
subtype\
cifc\
tcdecl\
lower\
port\
specsfile\
cyclone
CYCDOC_SRCS:=cycdoc\
warn\
flags\
parse_errors\
lex\
parse_tab\
absyn\
unify\
attributes\
tcutil\
kinds\
tctyp\
tcenv\
tcexp\
currgn\
binding\
tcstmt\
tcpat\
callgraph\
tc\
toc\
cifc\
tcdecl\
jump_analysis\
new_control_flow\
assndef\
pratt_prover\
vcgen\
insert_checks\
cf_flowinfo\
formatstr\
evexp\
subtype\
absynpp\
$(BANSHEE_STUB)
BUILDLIB_SRCS:=buildlib\
specsfile\
warn\
flags\
parse_errors\
lex\
kinds\
parse_tab\
unify\
attributes\
tcutil\
tctyp\
absynpp\
callgraph\
tc\
cifc\
tcdecl\
tcexp\
currgn\
binding\
tcstmt\
formatstr\
evexp\
tcenv\
tcpat\
jump_analysis\
new_control_flow\
assndef\
pratt_prover\
vcgen\
insert_checks\
cf_flowinfo\
toc\
subtype\
absyn\
$(BANSHEE_STUB)
# We can't optimize these files because the use try/catch and GCC 4.x
# and our implementation of try/catch do not get along.
NOOPT_SRCS:= parse_tab parse_tab_a parse_tab_pg pratt_prover binding callgraph cifc cyclone interface tc tcenv tcexp tcpat tctyp tcutil toc unify
# Add XML library .h files to CYCLONE_H
ifndef NO_XML_LIB
CYCLONE_H := $(CYCLONE_H) xml/xml.h xml/xmldump.h xml/xmlparse.h
endif
# Files for the runtime system
RUNTIME:=runtime_cyc \
runtime_stack \
runtime_exception \
runtime_zeroterm \
runtime_memory \
bget
CYCLIB:=libcyc.$(A)
CYCBOOTLIB:=libcycboot.$(A)
CYCCOMP:=cyclone$(EXE)
CYCINFCOMP:=cyclone-inf$(EXE)
C_SRCS:=$(addsuffix .c, $(CYCLONE_SRCS) $(BANSHEE_STUB) $(BANSHEE_IF))
C_BOOT_LIBS:=$(addsuffix .c, $(CYCLONE_BOOT_LIBS))
C_LIBS:=$(addsuffix .c, $(CYCLONE_LIBS))
O_SRCS:=$(addsuffix .$(O), $(CYCLONE_SRCS) $(BANSHEE_STUB))
BANSHEE_O_SRCS:=$(addsuffix .$(O), $(CYCLONE_SRCS) $(BANSHEE_IF))
ALL_O_SRCS:=$(addsuffix .$(O), $(CYCLONE_SRCS) $(BANSHEE_STUB) $(BANSHEE_IF))
O_BOOT_LIBS:=$(addsuffix .$(O), $(CYCLONE_BOOT_LIBS))
O_LIBS:=$(addsuffix .$(O), $(CYCLONE_LIBS))
A_SRCS:=$(addsuffix _a.$(O), $(CYCLONE_SRCS) $(BANSHEE_STUB))
A_BOOT_LIBS:=$(addsuffix _a.$(O), $(CYCLONE_BOOT_LIBS))
A_LIBS:=$(addsuffix _a.$(O), $(CYCLONE_LIBS))
PG_SRCS:=$(addsuffix _pg.$(O), $(CYCLONE_SRCS) $(BANSHEE_STUB))
PG_BOOT_LIBS:=$(addsuffix _pg.$(O), $(CYCLONE_BOOT_LIBS))
PG_LIBS:=$(addsuffix _pg.$(O), $(CYCLONE_LIBS))
NOCHECK_BOOT_LIBS:=$(addsuffix _nocheck.$(O), $(CYCLONE_BOOT_LIBS))
NOCHECK_LIBS:=$(addsuffix _nocheck.$(O), $(CYCLONE_LIBS))
C_RUNTIME:=$(addsuffix .c, $(RUNTIME))
O_RUNTIME:=$(addsuffix .$(O), $(RUNTIME))
A_RUNTIME:=$(addsuffix _a.$(O), $(RUNTIME))
PG_RUNTIME:=$(addsuffix _pg.$(O), $(RUNTIME))
O_NOOPT_SRCS:=$(addsuffix .$(O),$(NOOPT_SRCS))
OPTFLAG:=-O
UPDATE_SRCS:=$(addsuffix .c, $(CYCLONE_SRCS) $(BANSHEE_STUB) $(BANSHEE_IF) cycdoc buildlib)