GNUmakefile.am 17.8 KB
Newer Older
1
javascriptcore_cppflags += \
2
	-I$(srcdir)/JavaScriptCore/API \
3
	-I$(srcdir)/JavaScriptCore/ForwardingHeaders \
4
	-I$(srcdir)/JavaScriptCore/VM \
5
	-I$(srcdir)/JavaScriptCore/debugger \
6
	-I$(srcdir)/JavaScriptCore/pcre \
7
	-I$(srcdir)/JavaScriptCore/profiler \
8
	-I$(srcdir)/JavaScriptCore/runtime \
9
	-I$(srcdir)/JavaScriptCore/wtf/unicode \
10
	-I$(top_builddir)/JavaScriptCore/pcre \
11
12
	-I$(top_builddir)/JavaScriptCore/kjs \
	-I$(top_builddir)/JavaScriptCore/runtime
13
14
15
16
17

javascriptcore_h_api += \
	JavaScriptCore/API/JSBase.h \
	JavaScriptCore/API/JSContextRef.h \
	JavaScriptCore/API/JSObjectRef.h \
18
	JavaScriptCore/API/JSStringRef.h \
19
20
	JavaScriptCore/API/JSStringRefBSTR.h \
	JavaScriptCore/API/JSStringRefCF.h \
21
	JavaScriptCore/API/JSValueRef.h \
22
23
	JavaScriptCore/API/JavaScript.h \
	JavaScriptCore/API/JavaScriptCore.h \
24
	JavaScriptCore/API/WebKitAvailability.h
25
26

javascriptcore_built_nosources += \
27
	DerivedSources/lexer.lut.h \
28
29
30
31
	JavaScriptCore/runtime/ArrayPrototype.lut.h \
	JavaScriptCore/runtime/DatePrototype.lut.h \
	JavaScriptCore/runtime/MathObject.lut.h \
	JavaScriptCore/runtime/NumberConstructor.lut.h \
32
33
	JavaScriptCore/runtime/RegExpConstructor.lut.h \
	JavaScriptCore/runtime/RegExpObject.lut.h \
34
	JavaScriptCore/runtime/StringPrototype.lut.h \
35
	JavaScriptCore/pcre/chartables.c
36
37

javascriptcore_sources += \
38
	JavaScriptCore/API/APICast.h \
39
	JavaScriptCore/API/JSBase.cpp \
40
	JavaScriptCore/API/JSBasePrivate.h \
41
	JavaScriptCore/API/JSCallbackConstructor.cpp \
42
	JavaScriptCore/API/JSCallbackConstructor.h \
43
	JavaScriptCore/API/JSCallbackFunction.cpp \
44
	JavaScriptCore/API/JSCallbackFunction.h \
45
	JavaScriptCore/API/JSCallbackObject.cpp \
46
47
	JavaScriptCore/API/JSCallbackObject.h \
	JavaScriptCore/API/JSCallbackObjectFunctions.h \
48
	JavaScriptCore/API/JSClassRef.cpp \
49
	JavaScriptCore/API/JSClassRef.h \
50
51
	JavaScriptCore/API/JSContextRef.cpp \
	JavaScriptCore/API/JSObjectRef.cpp \
52
	JavaScriptCore/API/JSRetainPtr.h \
53
54
	JavaScriptCore/API/JSStringRef.cpp \
	JavaScriptCore/API/JSValueRef.cpp \
ap@webkit.org's avatar
ap@webkit.org committed
55
	JavaScriptCore/API/OpaqueJSString.cpp \
56
	JavaScriptCore/API/OpaqueJSString.h \
57
58
59
60
61
62
63
64
65
66
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/APICast.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSBase.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSContextRef.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSObjectRef.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSRetainPtr.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRef.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRefCF.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSValueRef.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScript.h \
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScriptCore.h \
67
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/OpaqueJSString.h \
68
69
	JavaScriptCore/ForwardingHeaders/JavaScriptCore/WebKitAvailability.h \
	JavaScriptCore/JavaScriptCorePrefix.h \
70
71
	JavaScriptCore/VM/CTI.cpp \
	JavaScriptCore/VM/CTI.h \
72
	JavaScriptCore/VM/CodeBlock.cpp \
73
74
	JavaScriptCore/VM/CodeBlock.h \
	JavaScriptCore/VM/CodeGenerator.h \
75
	JavaScriptCore/VM/ExceptionHelpers.cpp \
76
77
	JavaScriptCore/VM/ExceptionHelpers.h \
	JavaScriptCore/VM/Instruction.h \
78
79
	JavaScriptCore/runtime/JSPropertyNameIterator.cpp \
	JavaScriptCore/runtime/JSPropertyNameIterator.h \
80
	JavaScriptCore/VM/LabelID.h \
81
	JavaScriptCore/VM/Machine.cpp \
82
	JavaScriptCore/VM/Machine.h \
83
	JavaScriptCore/VM/Opcode.cpp \
84
85
86
87
	JavaScriptCore/VM/Opcode.h \
	JavaScriptCore/VM/Register.h \
	JavaScriptCore/VM/RegisterFile.h \
	JavaScriptCore/VM/RegisterID.h \
88
	JavaScriptCore/VM/SamplingTool.cpp \
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
	JavaScriptCore/VM/SamplingTool.h \
	JavaScriptCore/VM/SegmentedVector.h \
	JavaScriptCore/icu/unicode/parseerr.h \
	JavaScriptCore/icu/unicode/platform.h \
	JavaScriptCore/icu/unicode/putil.h \
	JavaScriptCore/icu/unicode/uchar.h \
	JavaScriptCore/icu/unicode/ucnv.h \
	JavaScriptCore/icu/unicode/ucnv_err.h \
	JavaScriptCore/icu/unicode/ucol.h \
	JavaScriptCore/icu/unicode/uconfig.h \
	JavaScriptCore/icu/unicode/uenum.h \
	JavaScriptCore/icu/unicode/uiter.h \
	JavaScriptCore/icu/unicode/uloc.h \
	JavaScriptCore/icu/unicode/umachine.h \
	JavaScriptCore/icu/unicode/unorm.h \
	JavaScriptCore/icu/unicode/urename.h \
	JavaScriptCore/icu/unicode/uset.h \
	JavaScriptCore/icu/unicode/ustring.h \
	JavaScriptCore/icu/unicode/utf.h \
	JavaScriptCore/icu/unicode/utf16.h \
	JavaScriptCore/icu/unicode/utf8.h \
	JavaScriptCore/icu/unicode/utf_old.h \
	JavaScriptCore/icu/unicode/utypes.h \
	JavaScriptCore/icu/unicode/uversion.h \
113
114
115
116
	JavaScriptCore/runtime/ArgList.h \
	JavaScriptCore/runtime/Arguments.h \
	JavaScriptCore/runtime/BatchedTransitionOptimizer.h \
	JavaScriptCore/runtime/CollectorHeapIterator.h \
117
118
	JavaScriptCore/debugger/DebuggerCallFrame.cpp \
	JavaScriptCore/debugger/DebuggerCallFrame.h \
119
120
121
122
123
124
125
126
127
128
	JavaScriptCore/runtime/ExecState.cpp \
	JavaScriptCore/runtime/ExecState.h \
	JavaScriptCore/runtime/InitializeThreading.cpp \
	JavaScriptCore/runtime/InitializeThreading.h \
	JavaScriptCore/runtime/JSActivation.cpp \
	JavaScriptCore/runtime/JSActivation.h \
	JavaScriptCore/runtime/JSGlobalData.cpp \
	JavaScriptCore/runtime/JSGlobalData.h \
	JavaScriptCore/runtime/JSStaticScopeObject.h \
	JavaScriptCore/runtime/JSType.h \
129
130
	JavaScriptCore/kjs/NodeInfo.h \
	JavaScriptCore/kjs/Parser.h \
131
	JavaScriptCore/runtime/PropertyNameArray.h \
132
133
134
135
	JavaScriptCore/runtime/RegExpConstructor.h \
	JavaScriptCore/runtime/RegExpMatchesArray.h \
	JavaScriptCore/runtime/RegExpObject.h \
	JavaScriptCore/runtime/RegExpPrototype.h \
136
	JavaScriptCore/kjs/ResultType.h \
137
138
	JavaScriptCore/runtime/ScopeChain.h \
	JavaScriptCore/runtime/ScopeChainMark.h \
139
	JavaScriptCore/kjs/SourceProvider.h \
140
	JavaScriptCore/kjs/SourceCode.h \
141
142
	JavaScriptCore/runtime/SymbolTable.h \
	JavaScriptCore/runtime/Tracing.h \
143
	JavaScriptCore/kjs/TypeInfo.h \
144
145
146
	JavaScriptCore/kjs/collector.h \
	JavaScriptCore/kjs/completion.h \
	JavaScriptCore/kjs/config.h \
147
	JavaScriptCore/debugger/Debugger.h \
148
149
150
151
152
153
154
155
156
157
	JavaScriptCore/kjs/dtoa.h \
	JavaScriptCore/kjs/identifier.h \
	JavaScriptCore/kjs/interpreter.h \
	JavaScriptCore/kjs/lexer.h \
	JavaScriptCore/kjs/lookup.h \
	JavaScriptCore/kjs/nodes.h \
	JavaScriptCore/kjs/operations.h \
	JavaScriptCore/kjs/protect.h \
	JavaScriptCore/kjs/regexp.h \
	JavaScriptCore/kjs/ustring.h \
158
	JavaScriptCore/masm/X86Assembler.h \
159
160
161
	JavaScriptCore/os-win32/stdbool.h \
	JavaScriptCore/os-win32/stdint.h \
	JavaScriptCore/pcre/pcre.h \
162
163
	JavaScriptCore/pcre/pcre_compile.cpp \
	JavaScriptCore/pcre/pcre_exec.cpp \
164
	JavaScriptCore/pcre/pcre_internal.h \
165
166
167
	JavaScriptCore/pcre/pcre_tables.cpp \
	JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp \
	JavaScriptCore/pcre/pcre_xclass.cpp \
168
169
	JavaScriptCore/pcre/ucpinternal.h \
	JavaScriptCore/profiler/CallIdentifier.h \
170
	JavaScriptCore/profiler/HeavyProfile.cpp \
171
172
173
	JavaScriptCore/profiler/HeavyProfile.h \
	JavaScriptCore/profiler/Profile.cpp \
	JavaScriptCore/profiler/Profile.h \
174
	JavaScriptCore/profiler/ProfileGenerator.cpp \
175
	JavaScriptCore/profiler/ProfileGenerator.h \
kmccullough@apple.com's avatar
kmccullough@apple.com committed
176
	JavaScriptCore/profiler/ProfileNode.cpp \
177
	JavaScriptCore/profiler/ProfileNode.h \
178
	JavaScriptCore/profiler/Profiler.cpp \
179
	JavaScriptCore/profiler/Profiler.h \
180
	JavaScriptCore/profiler/TreeProfile.cpp \
181
	JavaScriptCore/profiler/TreeProfile.h \
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
	JavaScriptCore/runtime/ArrayConstructor.h \
	JavaScriptCore/runtime/ArrayPrototype.h \
	JavaScriptCore/runtime/BooleanConstructor.h \
	JavaScriptCore/runtime/BooleanObject.h \
	JavaScriptCore/runtime/BooleanPrototype.h \
	JavaScriptCore/runtime/CallData.h \
	JavaScriptCore/runtime/ClassInfo.h \
	JavaScriptCore/runtime/DateConstructor.h \
	JavaScriptCore/runtime/DateInstance.h \
	JavaScriptCore/runtime/DateMath.h \
	JavaScriptCore/runtime/DatePrototype.h \
	JavaScriptCore/runtime/Error.h \
	JavaScriptCore/runtime/ErrorConstructor.h \
	JavaScriptCore/runtime/ErrorInstance.h \
	JavaScriptCore/runtime/ErrorPrototype.h \
	JavaScriptCore/runtime/FunctionConstructor.h \
	JavaScriptCore/runtime/FunctionPrototype.h \
	JavaScriptCore/runtime/GlobalEvalFunction.h \
	JavaScriptCore/runtime/InternalFunction.h \
	JavaScriptCore/runtime/JSArray.h \
	JavaScriptCore/runtime/JSCell.h \
	JavaScriptCore/runtime/JSFunction.h \
	JavaScriptCore/runtime/JSGlobalObject.h \
	JavaScriptCore/runtime/JSGlobalObjectFunctions.h \
	JavaScriptCore/runtime/JSImmediate.h \
	JavaScriptCore/runtime/JSNotAnObject.cpp \
	JavaScriptCore/runtime/JSNotAnObject.h \
	JavaScriptCore/runtime/JSNumberCell.h \
	JavaScriptCore/runtime/JSObject.h \
	JavaScriptCore/runtime/JSString.h \
	JavaScriptCore/runtime/JSValue.h \
	JavaScriptCore/runtime/JSVariableObject.h \
	JavaScriptCore/runtime/MathObject.h \
	JavaScriptCore/runtime/NativeErrorConstructor.h \
	JavaScriptCore/runtime/NativeErrorPrototype.h \
	JavaScriptCore/runtime/NumberConstructor.h \
	JavaScriptCore/runtime/NumberObject.h \
	JavaScriptCore/runtime/NumberPrototype.h \
	JavaScriptCore/runtime/ObjectConstructor.h \
	JavaScriptCore/runtime/ObjectPrototype.h \
222
	JavaScriptCore/runtime/PropertyMapHashTable.h \
223
224
225
226
227
228
229
230
231
232
233
	JavaScriptCore/runtime/PropertySlot.h \
	JavaScriptCore/runtime/PrototypeFunction.h \
	JavaScriptCore/runtime/PutPropertySlot.h \
	JavaScriptCore/runtime/SmallStrings.cpp \
	JavaScriptCore/runtime/SmallStrings.h \
	JavaScriptCore/runtime/StringConstructor.h \
	JavaScriptCore/runtime/StringObject.h \
	JavaScriptCore/runtime/StringObjectThatMasqueradesAsUndefined.h \
	JavaScriptCore/runtime/StringPrototype.h \
	JavaScriptCore/runtime/StructureID.cpp \
	JavaScriptCore/runtime/StructureID.h \
234
235
	JavaScriptCore/runtime/StructureIDChain.cpp \
	JavaScriptCore/runtime/StructureIDChain.h \
236
	JavaScriptCore/runtime/StructureIDTransitionTable.h \
237
238
239
240
	JavaScriptCore/wrec/CharacterClassConstructor.cpp \
	JavaScriptCore/wrec/CharacterClassConstructor.h \
	JavaScriptCore/wrec/WREC.cpp \
	JavaScriptCore/wrec/WREC.h \
241
242
243
	JavaScriptCore/wtf/ASCIICType.h \
	JavaScriptCore/wtf/AVLTree.h \
	JavaScriptCore/wtf/AlwaysInline.h \
244
	JavaScriptCore/wtf/Assertions.cpp \
245
246
247
248
249
	JavaScriptCore/wtf/Assertions.h \
	JavaScriptCore/wtf/Deque.h \
	JavaScriptCore/wtf/DisallowCType.h \
	JavaScriptCore/wtf/FastMalloc.h \
	JavaScriptCore/wtf/Forward.h \
250
251
	JavaScriptCore/wtf/GOwnPtr.cpp \
	JavaScriptCore/wtf/GOwnPtr.h \
252
	JavaScriptCore/wtf/GetPtr.h \
253
254
255
256
257
	JavaScriptCore/wtf/HashCountedSet.h \
	JavaScriptCore/wtf/HashFunctions.h \
	JavaScriptCore/wtf/HashIterators.h \
	JavaScriptCore/wtf/HashMap.h \
	JavaScriptCore/wtf/HashSet.h \
258
	JavaScriptCore/wtf/HashTable.cpp \
259
260
261
262
263
	JavaScriptCore/wtf/HashTable.h \
	JavaScriptCore/wtf/HashTraits.h \
	JavaScriptCore/wtf/ListHashSet.h \
	JavaScriptCore/wtf/ListRefPtr.h \
	JavaScriptCore/wtf/Locker.h \
264
	JavaScriptCore/wtf/MainThread.cpp \
265
266
267
268
269
	JavaScriptCore/wtf/MainThread.h \
	JavaScriptCore/wtf/MallocZoneSupport.h \
	JavaScriptCore/wtf/MathExtras.h \
	JavaScriptCore/wtf/MessageQueue.h \
	JavaScriptCore/wtf/Noncopyable.h \
270
	JavaScriptCore/wtf/NotFound.h \
271
272
273
274
275
	JavaScriptCore/wtf/OwnArrayPtr.h \
	JavaScriptCore/wtf/OwnPtr.h \
	JavaScriptCore/wtf/PassRefPtr.h \
	JavaScriptCore/wtf/Platform.h \
	JavaScriptCore/wtf/RefCounted.h \
276
	JavaScriptCore/wtf/RefCountedLeakCounter.cpp \
277
278
279
280
281
282
283
284
285
286
287
	JavaScriptCore/wtf/RefCountedLeakCounter.h \
	JavaScriptCore/wtf/RefPtr.h \
	JavaScriptCore/wtf/RefPtrHashMap.h \
	JavaScriptCore/wtf/RetainPtr.h \
	JavaScriptCore/wtf/StringExtras.h \
	JavaScriptCore/wtf/TCPackedCache.h \
	JavaScriptCore/wtf/TCPageMap.h \
	JavaScriptCore/wtf/TCSpinLock.h \
	JavaScriptCore/wtf/TCSystemAlloc.h \
	JavaScriptCore/wtf/ThreadSpecific.h \
	JavaScriptCore/wtf/Threading.h \
288
	JavaScriptCore/wtf/ThreadingGtk.cpp \
289
	JavaScriptCore/wtf/ThreadingPthreads.cpp \
290
291
292
	JavaScriptCore/wtf/UnusedParam.h \
	JavaScriptCore/wtf/Vector.h \
	JavaScriptCore/wtf/VectorTraits.h \
293
	JavaScriptCore/wtf/gtk/MainThreadGtk.cpp \
294
	JavaScriptCore/wtf/unicode/Collator.h \
ap@webkit.org's avatar
ap@webkit.org committed
295
	JavaScriptCore/wtf/unicode/CollatorDefault.cpp \
296
297
298
	JavaScriptCore/wtf/unicode/UTF8.cpp \
	JavaScriptCore/wtf/unicode/UTF8.h \
	JavaScriptCore/wtf/unicode/Unicode.h \
ap@webkit.org's avatar
ap@webkit.org committed
299
	JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp \
300
	JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
301
302
303
304

# Debug build
if ENABLE_DEBUG
javascriptcore_built_sources += \
305
306
	DerivedSources/grammar.cpp \
	DerivedSources/grammar.h
307
308

javascriptcore_sources += \
309
310
	JavaScriptCore/VM/CodeGenerator.cpp \
	JavaScriptCore/VM/RegisterFile.cpp \
311
312
313
314
315
316
317
318
319
	JavaScriptCore/runtime/ArgList.cpp \
	JavaScriptCore/runtime/Arguments.cpp \
	JavaScriptCore/runtime/CommonIdentifiers.cpp \
	JavaScriptCore/runtime/CommonIdentifiers.h \
	JavaScriptCore/runtime/GetterSetter.cpp \
	JavaScriptCore/runtime/GetterSetter.h \
	JavaScriptCore/runtime/JSLock.cpp \
	JavaScriptCore/runtime/JSLock.h \
	JavaScriptCore/runtime/JSStaticScopeObject.cpp \
320
	JavaScriptCore/kjs/LabelScope.h \
321
	JavaScriptCore/kjs/Parser.cpp \
322
	JavaScriptCore/runtime/PropertyNameArray.cpp \
323
324
325
	JavaScriptCore/runtime/RegExpConstructor.cpp \
	JavaScriptCore/runtime/RegExpObject.cpp \
	JavaScriptCore/runtime/RegExpPrototype.cpp \
326
	JavaScriptCore/runtime/ScopeChain.cpp \
327
	JavaScriptCore/kjs/collector.cpp \
328
	JavaScriptCore/debugger/Debugger.cpp \
329
330
331
332
333
334
335
336
337
338
	JavaScriptCore/kjs/dtoa.cpp \
	JavaScriptCore/kjs/identifier.cpp \
	JavaScriptCore/kjs/interpreter.cpp \
	JavaScriptCore/kjs/lexer.cpp \
	JavaScriptCore/kjs/lookup.cpp \
	JavaScriptCore/kjs/nodes.cpp \
	JavaScriptCore/kjs/nodes2string.cpp \
	JavaScriptCore/kjs/operations.cpp \
	JavaScriptCore/kjs/regexp.cpp \
	JavaScriptCore/kjs/ustring.cpp \
339
340
341
342
343
344
	JavaScriptCore/runtime/ArrayConstructor.cpp \
	JavaScriptCore/runtime/ArrayPrototype.cpp \
	JavaScriptCore/runtime/BooleanConstructor.cpp \
	JavaScriptCore/runtime/BooleanObject.cpp \
	JavaScriptCore/runtime/BooleanPrototype.cpp \
	JavaScriptCore/runtime/CallData.cpp \
345
346
	JavaScriptCore/runtime/ConstructData.cpp \
	JavaScriptCore/runtime/ConstructData.h \
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
	JavaScriptCore/runtime/DateConstructor.cpp \
	JavaScriptCore/runtime/DateInstance.cpp \
	JavaScriptCore/runtime/DateMath.cpp \
	JavaScriptCore/runtime/DatePrototype.cpp \
	JavaScriptCore/runtime/Error.cpp \
	JavaScriptCore/runtime/ErrorConstructor.cpp \
	JavaScriptCore/runtime/ErrorInstance.cpp \
	JavaScriptCore/runtime/ErrorPrototype.cpp \
	JavaScriptCore/runtime/FunctionConstructor.cpp \
	JavaScriptCore/runtime/FunctionPrototype.cpp \
	JavaScriptCore/runtime/GlobalEvalFunction.cpp \
	JavaScriptCore/runtime/InternalFunction.cpp \
	JavaScriptCore/runtime/JSArray.cpp \
	JavaScriptCore/runtime/JSCell.cpp \
	JavaScriptCore/runtime/JSFunction.cpp \
	JavaScriptCore/runtime/JSGlobalObject.cpp \
	JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp \
	JavaScriptCore/runtime/JSImmediate.cpp \
	JavaScriptCore/runtime/JSNumberCell.cpp \
	JavaScriptCore/runtime/JSObject.cpp \
	JavaScriptCore/runtime/JSString.cpp \
	JavaScriptCore/runtime/JSValue.cpp \
	JavaScriptCore/runtime/JSVariableObject.cpp \
	JavaScriptCore/runtime/JSWrapperObject.cpp \
371
	JavaScriptCore/runtime/JSWrapperObject.h \
372
373
374
375
376
377
378
379
380
381
382
383
384
	JavaScriptCore/runtime/MathObject.cpp \
	JavaScriptCore/runtime/NativeErrorConstructor.cpp \
	JavaScriptCore/runtime/NativeErrorPrototype.cpp \
	JavaScriptCore/runtime/NumberConstructor.cpp \
	JavaScriptCore/runtime/NumberObject.cpp \
	JavaScriptCore/runtime/NumberPrototype.cpp \
	JavaScriptCore/runtime/ObjectConstructor.cpp \
	JavaScriptCore/runtime/ObjectPrototype.cpp \
	JavaScriptCore/runtime/PropertySlot.cpp \
	JavaScriptCore/runtime/PrototypeFunction.cpp \
	JavaScriptCore/runtime/StringConstructor.cpp \
	JavaScriptCore/runtime/StringObject.cpp \
	JavaScriptCore/runtime/StringPrototype.cpp \
385
	JavaScriptCore/wtf/FastMalloc.cpp \
386
	JavaScriptCore/wtf/TCSystemAlloc.cpp
387

388
else
389
javascriptcore_built_nosources += \
390
391
	DerivedSources/grammar.cpp \
	DerivedSources/grammar.h
392
393

javascriptcore_sources += \
394
	JavaScriptCore/AllInOneFile.cpp
395
396
endif # END ENABLE_DEBUG

397
DerivedSources/grammar.h: DerivedSources/grammar.cpp;
398

399
DerivedSources/grammar.cpp: $(srcdir)/JavaScriptCore/kjs/grammar.y
400
401
402
	$(BISON) -d -p kjsyy $(srcdir)/JavaScriptCore/kjs/grammar.y -o $@ > bison_out.txt 2>&1
	$(PERL) -p -e 'END { if ($$conflict) { unlink "grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt
	cat $(GENSOURCES)/grammar.hpp > $(GENSOURCES)/grammar.h
403
	rm -f $(GENSOURCES)/grammar.hpp bison_out.txt
404
405
406
407

DerivedSources/lexer.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/kjs/keywords.table
	$(PERL) $^ > $@

408
JavaScriptCore/%.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/%.cpp
409
410
	$^ -i > $@

ddkilzer@apple.com's avatar
ddkilzer@apple.com committed
411
412
JavaScriptCore/pcre/chartables.c: $(srcdir)/JavaScriptCore/pcre/dftables
	$^ $@
413

414
bin_PROGRAMS += \
mjs@apple.com's avatar
mjs@apple.com committed
415
	Programs/jsc
416

417
418
419
noinst_PROGRAMS += \
	Programs/minidom

420
421
# minidom
Programs_minidom_SOURCES = \
ap@webkit.org's avatar
ap@webkit.org committed
422
	JavaScriptCore/API/tests/JSNode.c \
423
	JavaScriptCore/API/tests/JSNode.h \
ap@webkit.org's avatar
ap@webkit.org committed
424
	JavaScriptCore/API/tests/JSNodeList.c \
425
	JavaScriptCore/API/tests/JSNodeList.h \
ap@webkit.org's avatar
ap@webkit.org committed
426
	JavaScriptCore/API/tests/Node.c \
427
	JavaScriptCore/API/tests/Node.h \
ap@webkit.org's avatar
ap@webkit.org committed
428
	JavaScriptCore/API/tests/NodeList.c \
429
	JavaScriptCore/API/tests/NodeList.h \
ap@webkit.org's avatar
ap@webkit.org committed
430
	JavaScriptCore/API/tests/minidom.c
431
432
433
434
435

Programs_minidom_CPPFLAGS = \
	$(global_cppflags) \
	$(javascriptcore_cppflags)

darin@apple.com's avatar
.:    
darin@apple.com committed
436
Programs_minidom_CFLAGS = \
437
438
	-fno-strict-aliasing \
	-O2 \
439
440
	$(global_cflags) \
	$(GLOBALDEPS_CFLAGS)
441

darin@apple.com's avatar
.:    
darin@apple.com committed
442
Programs_minidom_LDADD = \
443
	 libJavaScriptCore.la \
444
	 -lm \
445
	 -lstdc++
446

mjs@apple.com's avatar
mjs@apple.com committed
447
# jsc
448
449
Programs_jsc_SOURCES = \
	JavaScriptCore/kjs/Shell.cpp
450

mjs@apple.com's avatar
mjs@apple.com committed
451
Programs_jsc_CPPFLAGS = \
452
453
	$(global_cppflags) \
	$(javascriptcore_cppflags)
454

mjs@apple.com's avatar
mjs@apple.com committed
455
Programs_jsc_CXXFLAGS = \
456
457
	-fno-strict-aliasing \
	-O2 \
458
459
	$(global_cxxflags) \
	$(global_cflags) \
460
461
	$(GLOBALDEPS_CFLAGS) \
	$(UNICODE_CFLAGS)
462

mjs@apple.com's avatar
mjs@apple.com committed
463
Programs_jsc_LDADD = \
464
	libJavaScriptCore.la
465

466
467
468
javascriptcore_dist += \
	$(CREATE_HASH_TABLE) \
	JavaScriptCore/AUTHORS \
469
	JavaScriptCore/COPYING.LIB \
470
471
472
473
474
475
476
477
478
479
480
	JavaScriptCore/ChangeLog \
	JavaScriptCore/THANKS \
	JavaScriptCore/icu/LICENSE \
	JavaScriptCore/icu/README \
	JavaScriptCore/pcre/COPYING \
	JavaScriptCore/pcre/AUTHORS \
	JavaScriptCore/pcre/dftables \
	JavaScriptCore/pcre/ucptable.cpp \
	JavaScriptCore/kjs/grammar.y \
	JavaScriptCore/kjs/keywords.table

481
482
# Clean rules for JavaScriptCore
CLEANFILES += \
483
484
485
486
	JavaScriptCore/runtime/ArrayPrototype.lut.h \
	JavaScriptCore/runtime/DatePrototype.lut.h \
	JavaScriptCore/runtime/MathObject.lut.h \
	JavaScriptCore/runtime/NumberConstructor.lut.h \
487
488
	JavaScriptCore/runtime/RegExpConstructor.lut.h \
	JavaScriptCore/runtime/RegExpObject.lut.h \
489
	JavaScriptCore/runtime/StringPrototype.lut.h \
490
	JavaScriptCore/pcre/chartables.c \
mjs@apple.com's avatar
mjs@apple.com committed
491
	Programs/jsc \
492
	Programs/minidom