4702a1647b998e516f58c168f191858e5ce6ad51
[WebKit-https.git] / JavaScriptCore / GNUmakefile.am
1 javascriptcore_cppflags += \
2         -I$(srcdir)/JavaScriptCore/API \
3         -I$(srcdir)/JavaScriptCore/ForwardingHeaders \
4         -I$(srcdir)/JavaScriptCore/interpreter \
5         -I$(srcdir)/JavaScriptCore/bytecode \
6         -I$(srcdir)/JavaScriptCore/bytecompiler \
7         -I$(srcdir)/JavaScriptCore/debugger \
8         -I$(srcdir)/JavaScriptCore/jit \
9         -I$(srcdir)/JavaScriptCore/pcre \
10         -I$(srcdir)/JavaScriptCore/profiler \
11         -I$(srcdir)/JavaScriptCore/runtime \
12         -I$(srcdir)/JavaScriptCore/wrec \
13         -I$(srcdir)/JavaScriptCore/jit \
14         -I$(srcdir)/JavaScriptCore/assembler \
15         -I$(srcdir)/JavaScriptCore/wtf/unicode \
16         -I$(top_builddir)/JavaScriptCore/pcre \
17         -I$(top_builddir)/JavaScriptCore/parser \
18         -I$(top_builddir)/JavaScriptCore/runtime
19
20 javascriptcore_h_api += \
21         JavaScriptCore/API/JSBase.h \
22         JavaScriptCore/API/JSContextRef.h \
23         JavaScriptCore/API/JSObjectRef.h \
24         JavaScriptCore/API/JSStringRef.h \
25         JavaScriptCore/API/JSStringRefBSTR.h \
26         JavaScriptCore/API/JSStringRefCF.h \
27         JavaScriptCore/API/JSValueRef.h \
28         JavaScriptCore/API/JavaScript.h \
29         JavaScriptCore/API/JavaScriptCore.h \
30         JavaScriptCore/API/WebKitAvailability.h
31
32 javascriptcore_built_nosources += \
33         DerivedSources/Lexer.lut.h \
34         JavaScriptCore/runtime/ArrayPrototype.lut.h \
35         JavaScriptCore/runtime/DatePrototype.lut.h \
36         JavaScriptCore/runtime/MathObject.lut.h \
37         JavaScriptCore/runtime/NumberConstructor.lut.h \
38         JavaScriptCore/runtime/RegExpConstructor.lut.h \
39         JavaScriptCore/runtime/RegExpObject.lut.h \
40         JavaScriptCore/runtime/StringPrototype.lut.h \
41         JavaScriptCore/pcre/chartables.c
42
43 javascriptcore_sources += \
44         JavaScriptCore/API/APICast.h \
45         JavaScriptCore/API/JSBase.cpp \
46         JavaScriptCore/API/JSBasePrivate.h \
47         JavaScriptCore/API/JSCallbackConstructor.cpp \
48         JavaScriptCore/API/JSCallbackConstructor.h \
49         JavaScriptCore/API/JSCallbackFunction.cpp \
50         JavaScriptCore/API/JSCallbackFunction.h \
51         JavaScriptCore/API/JSCallbackObject.cpp \
52         JavaScriptCore/API/JSCallbackObject.h \
53         JavaScriptCore/API/JSCallbackObjectFunctions.h \
54         JavaScriptCore/API/JSClassRef.cpp \
55         JavaScriptCore/API/JSClassRef.h \
56         JavaScriptCore/API/JSContextRef.cpp \
57         JavaScriptCore/API/JSObjectRef.cpp \
58         JavaScriptCore/API/JSRetainPtr.h \
59         JavaScriptCore/API/JSStringRef.cpp \
60         JavaScriptCore/API/JSValueRef.cpp \
61         JavaScriptCore/API/OpaqueJSString.cpp \
62         JavaScriptCore/API/OpaqueJSString.h \
63         JavaScriptCore/ForwardingHeaders/JavaScriptCore/APICast.h \
64         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSBase.h \
65         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSContextRef.h \
66         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSObjectRef.h \
67         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSRetainPtr.h \
68         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRef.h \
69         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRefCF.h \
70         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSValueRef.h \
71         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScript.h \
72         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScriptCore.h \
73         JavaScriptCore/ForwardingHeaders/JavaScriptCore/OpaqueJSString.h \
74         JavaScriptCore/ForwardingHeaders/JavaScriptCore/WebKitAvailability.h \
75         JavaScriptCore/JavaScriptCorePrefix.h \
76         JavaScriptCore/jit/ExecutableAllocator.h \
77         JavaScriptCore/jit/JIT.cpp \
78         JavaScriptCore/jit/JITCall.cpp \
79         JavaScriptCore/jit/JITPropertyAccess.cpp \
80         JavaScriptCore/jit/JITArithmetic.cpp \
81         JavaScriptCore/jit/ExecutableAllocator.cpp \
82         JavaScriptCore/jit/ExecutableAllocatorPosix.cpp \
83         JavaScriptCore/jit/JIT.h \
84         JavaScriptCore/jit/JITInlineMethods.h \
85         JavaScriptCore/bytecode/StructureStubInfo.cpp \
86         JavaScriptCore/bytecode/StructureStubInfo.h \
87         JavaScriptCore/bytecode/CodeBlock.cpp \
88         JavaScriptCore/bytecode/CodeBlock.h \
89         JavaScriptCore/bytecode/JumpTable.cpp \
90         JavaScriptCore/bytecode/JumpTable.h \
91         JavaScriptCore/bytecode/EvalCodeCache.h \
92         JavaScriptCore/runtime/ExceptionHelpers.cpp \
93         JavaScriptCore/runtime/ExceptionHelpers.h \
94         JavaScriptCore/bytecode/Instruction.h \
95         JavaScriptCore/bytecompiler/Label.h \
96         JavaScriptCore/interpreter/Interpreter.cpp \
97         JavaScriptCore/interpreter/Interpreter.h \
98         JavaScriptCore/bytecode/Opcode.cpp \
99         JavaScriptCore/bytecode/Opcode.h \
100         JavaScriptCore/interpreter/Register.h \
101         JavaScriptCore/bytecompiler/RegisterID.h \
102         JavaScriptCore/bytecode/SamplingTool.cpp \
103         JavaScriptCore/bytecode/SamplingTool.h \
104         JavaScriptCore/bytecompiler/SegmentedVector.h \
105         JavaScriptCore/config.h \
106         JavaScriptCore/debugger/DebuggerCallFrame.cpp \
107         JavaScriptCore/debugger/DebuggerCallFrame.h \
108         JavaScriptCore/icu/unicode/parseerr.h \
109         JavaScriptCore/icu/unicode/platform.h \
110         JavaScriptCore/icu/unicode/putil.h \
111         JavaScriptCore/icu/unicode/uchar.h \
112         JavaScriptCore/icu/unicode/ucnv.h \
113         JavaScriptCore/icu/unicode/ucnv_err.h \
114         JavaScriptCore/icu/unicode/ucol.h \
115         JavaScriptCore/icu/unicode/uconfig.h \
116         JavaScriptCore/icu/unicode/uenum.h \
117         JavaScriptCore/icu/unicode/uiter.h \
118         JavaScriptCore/icu/unicode/uloc.h \
119         JavaScriptCore/icu/unicode/umachine.h \
120         JavaScriptCore/icu/unicode/unorm.h \
121         JavaScriptCore/icu/unicode/urename.h \
122         JavaScriptCore/icu/unicode/uset.h \
123         JavaScriptCore/icu/unicode/ustring.h \
124         JavaScriptCore/icu/unicode/utf.h \
125         JavaScriptCore/icu/unicode/utf16.h \
126         JavaScriptCore/icu/unicode/utf8.h \
127         JavaScriptCore/icu/unicode/utf_old.h \
128         JavaScriptCore/icu/unicode/utypes.h \
129         JavaScriptCore/icu/unicode/uversion.h \
130         JavaScriptCore/assembler/X86Assembler.h \
131         JavaScriptCore/assembler/AssemblerBuffer.h \
132         JavaScriptCore/assembler/MacroAssembler.h \
133         JavaScriptCore/os-win32/stdbool.h \
134         JavaScriptCore/os-win32/stdint.h \
135         JavaScriptCore/pcre/pcre.h \
136         JavaScriptCore/pcre/pcre_compile.cpp \
137         JavaScriptCore/pcre/pcre_exec.cpp \
138         JavaScriptCore/pcre/pcre_internal.h \
139         JavaScriptCore/pcre/pcre_tables.cpp \
140         JavaScriptCore/pcre/pcre_ucp_searchfuncs.cpp \
141         JavaScriptCore/pcre/pcre_xclass.cpp \
142         JavaScriptCore/pcre/ucpinternal.h \
143         JavaScriptCore/profiler/CallIdentifier.h \
144         JavaScriptCore/profiler/HeavyProfile.cpp \
145         JavaScriptCore/profiler/HeavyProfile.h \
146         JavaScriptCore/profiler/Profile.cpp \
147         JavaScriptCore/profiler/Profile.h \
148         JavaScriptCore/profiler/ProfileGenerator.cpp \
149         JavaScriptCore/profiler/ProfileGenerator.h \
150         JavaScriptCore/profiler/ProfileNode.cpp \
151         JavaScriptCore/profiler/ProfileNode.h \
152         JavaScriptCore/profiler/Profiler.cpp \
153         JavaScriptCore/profiler/Profiler.h \
154         JavaScriptCore/profiler/TreeProfile.cpp \
155         JavaScriptCore/profiler/TreeProfile.h \
156         JavaScriptCore/interpreter/CallFrame.cpp \
157         JavaScriptCore/interpreter/CallFrame.h \
158         JavaScriptCore/runtime/InitializeThreading.cpp \
159         JavaScriptCore/runtime/InitializeThreading.h \
160         JavaScriptCore/runtime/JSActivation.cpp \
161         JavaScriptCore/runtime/JSActivation.h \
162         JavaScriptCore/runtime/JSGlobalData.cpp \
163         JavaScriptCore/runtime/JSGlobalData.h \
164         JavaScriptCore/runtime/JSNotAnObject.cpp \
165         JavaScriptCore/runtime/JSNotAnObject.h \
166         JavaScriptCore/runtime/JSPropertyNameIterator.cpp \
167         JavaScriptCore/runtime/JSPropertyNameIterator.h \
168         JavaScriptCore/runtime/SmallStrings.cpp \
169         JavaScriptCore/runtime/SmallStrings.h \
170         JavaScriptCore/runtime/Structure.cpp \
171         JavaScriptCore/runtime/Structure.h \
172         JavaScriptCore/runtime/StructureChain.cpp \
173         JavaScriptCore/runtime/StructureChain.h \
174         JavaScriptCore/runtime/StructureTransitionTable.h \
175         JavaScriptCore/runtime/TypeInfo.h \
176         JavaScriptCore/wrec/CharacterClass.cpp \
177         JavaScriptCore/wrec/CharacterClass.h \
178         JavaScriptCore/wrec/CharacterClassConstructor.cpp \
179         JavaScriptCore/wrec/CharacterClassConstructor.h \
180         JavaScriptCore/wrec/Escapes.h \
181         JavaScriptCore/wrec/Quantifier.h \
182         JavaScriptCore/wrec/WREC.cpp \
183         JavaScriptCore/wrec/WREC.h \
184         JavaScriptCore/wrec/WRECFunctors.cpp \
185         JavaScriptCore/wrec/WRECFunctors.h \
186         JavaScriptCore/wrec/WRECGenerator.cpp \
187         JavaScriptCore/wrec/WRECGenerator.h \
188         JavaScriptCore/wrec/WRECParser.cpp \
189         JavaScriptCore/wrec/WRECParser.h \
190         JavaScriptCore/wtf/ASCIICType.h \
191         JavaScriptCore/wtf/AVLTree.h \
192         JavaScriptCore/wtf/AlwaysInline.h \
193         JavaScriptCore/wtf/Assertions.cpp \
194         JavaScriptCore/wtf/Assertions.h \
195         JavaScriptCore/wtf/Deque.h \
196         JavaScriptCore/wtf/DisallowCType.h \
197         JavaScriptCore/wtf/Forward.h \
198         JavaScriptCore/wtf/GOwnPtr.cpp \
199         JavaScriptCore/wtf/GOwnPtr.h \
200         JavaScriptCore/wtf/GetPtr.h \
201         JavaScriptCore/wtf/HashCountedSet.h \
202         JavaScriptCore/wtf/HashFunctions.h \
203         JavaScriptCore/wtf/HashIterators.h \
204         JavaScriptCore/wtf/HashMap.h \
205         JavaScriptCore/wtf/HashSet.h \
206         JavaScriptCore/wtf/HashTable.cpp \
207         JavaScriptCore/wtf/HashTable.h \
208         JavaScriptCore/wtf/HashTraits.h \
209         JavaScriptCore/wtf/ListHashSet.h \
210         JavaScriptCore/wtf/ListRefPtr.h \
211         JavaScriptCore/wtf/Locker.h \
212         JavaScriptCore/wtf/MainThread.cpp \
213         JavaScriptCore/wtf/MainThread.h \
214         JavaScriptCore/wtf/MathExtras.h \
215         JavaScriptCore/wtf/MessageQueue.h \
216         JavaScriptCore/wtf/Noncopyable.h \
217         JavaScriptCore/wtf/NotFound.h \
218         JavaScriptCore/wtf/OwnArrayPtr.h \
219         JavaScriptCore/wtf/OwnPtr.h \
220         JavaScriptCore/wtf/PassRefPtr.h \
221         JavaScriptCore/wtf/Platform.h \
222         JavaScriptCore/wtf/RandomNumber.cpp \
223         JavaScriptCore/wtf/RandomNumber.h \
224         JavaScriptCore/wtf/RandomNumberSeed.h \
225         JavaScriptCore/wtf/RefCounted.h \
226         JavaScriptCore/wtf/RefCountedLeakCounter.cpp \
227         JavaScriptCore/wtf/RefCountedLeakCounter.h \
228         JavaScriptCore/wtf/RefPtr.h \
229         JavaScriptCore/wtf/RefPtrHashMap.h \
230         JavaScriptCore/wtf/RetainPtr.h \
231         JavaScriptCore/wtf/StdLibExtras.h \
232         JavaScriptCore/wtf/StringExtras.h \
233         JavaScriptCore/wtf/TCPackedCache.h \
234         JavaScriptCore/wtf/TCPageMap.h \
235         JavaScriptCore/wtf/TCSpinLock.h \
236         JavaScriptCore/wtf/ThreadSpecific.h \
237         JavaScriptCore/wtf/Threading.h \
238         JavaScriptCore/wtf/ThreadingGtk.cpp \
239         JavaScriptCore/wtf/ThreadingPthreads.cpp \
240         JavaScriptCore/wtf/UnusedParam.h \
241         JavaScriptCore/wtf/Vector.h \
242         JavaScriptCore/wtf/VectorTraits.h \
243         JavaScriptCore/wtf/gtk/MainThreadGtk.cpp \
244         JavaScriptCore/wtf/unicode/Collator.h \
245         JavaScriptCore/wtf/unicode/CollatorDefault.cpp \
246         JavaScriptCore/wtf/unicode/UTF8.cpp \
247         JavaScriptCore/wtf/unicode/UTF8.h \
248         JavaScriptCore/wtf/unicode/Unicode.h \
249         JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp \
250         JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
251
252 # Debug build
253 if ENABLE_DEBUG
254 javascriptcore_built_sources += \
255         DerivedSources/Grammar.cpp \
256         DerivedSources/Grammar.h
257
258 javascriptcore_sources += \
259         JavaScriptCore/interpreter/RegisterFile.cpp \
260         JavaScriptCore/interpreter/RegisterFile.h \
261         JavaScriptCore/bytecompiler/BytecodeGenerator.cpp \
262         JavaScriptCore/bytecompiler/BytecodeGenerator.h \
263         JavaScriptCore/bytecompiler/LabelScope.h \
264         JavaScriptCore/debugger/Debugger.cpp \
265         JavaScriptCore/debugger/Debugger.h \
266         JavaScriptCore/parser/Lexer.cpp \
267         JavaScriptCore/parser/Lexer.h \
268         JavaScriptCore/parser/NodeInfo.h \
269         JavaScriptCore/parser/Nodes.cpp \
270         JavaScriptCore/parser/Nodes.h \
271         JavaScriptCore/parser/Parser.cpp \
272         JavaScriptCore/parser/Parser.h \
273         JavaScriptCore/parser/ResultType.h \
274         JavaScriptCore/parser/SourceCode.h \
275         JavaScriptCore/parser/SourceProvider.h \
276         JavaScriptCore/runtime/ArgList.cpp \
277         JavaScriptCore/runtime/ArgList.h \
278         JavaScriptCore/runtime/Arguments.cpp \
279         JavaScriptCore/runtime/Arguments.h \
280         JavaScriptCore/runtime/ArrayConstructor.cpp \
281         JavaScriptCore/runtime/ArrayConstructor.h \
282         JavaScriptCore/runtime/ArrayPrototype.cpp \
283         JavaScriptCore/runtime/ArrayPrototype.h \
284         JavaScriptCore/runtime/BatchedTransitionOptimizer.h \
285         JavaScriptCore/runtime/BooleanConstructor.cpp \
286         JavaScriptCore/runtime/BooleanConstructor.h \
287         JavaScriptCore/runtime/BooleanObject.cpp \
288         JavaScriptCore/runtime/BooleanObject.h \
289         JavaScriptCore/runtime/BooleanPrototype.cpp \
290         JavaScriptCore/runtime/BooleanPrototype.h \
291         JavaScriptCore/runtime/CallData.cpp \
292         JavaScriptCore/runtime/CallData.h \
293         JavaScriptCore/runtime/ClassInfo.h \
294         JavaScriptCore/runtime/Collector.cpp \
295         JavaScriptCore/runtime/Collector.h \
296         JavaScriptCore/runtime/CollectorHeapIterator.h \
297         JavaScriptCore/runtime/CommonIdentifiers.cpp \
298         JavaScriptCore/runtime/CommonIdentifiers.h \
299         JavaScriptCore/runtime/Completion.h \
300         JavaScriptCore/runtime/ConstructData.cpp \
301         JavaScriptCore/runtime/ConstructData.h \
302         JavaScriptCore/runtime/DateConstructor.cpp \
303         JavaScriptCore/runtime/DateConstructor.h \
304         JavaScriptCore/runtime/DateInstance.cpp \
305         JavaScriptCore/runtime/DateInstance.h \
306         JavaScriptCore/runtime/DateMath.cpp \
307         JavaScriptCore/runtime/DateMath.h \
308         JavaScriptCore/runtime/DatePrototype.cpp \
309         JavaScriptCore/runtime/DatePrototype.h \
310         JavaScriptCore/runtime/Error.cpp \
311         JavaScriptCore/runtime/Error.h \
312         JavaScriptCore/runtime/ErrorConstructor.cpp \
313         JavaScriptCore/runtime/ErrorConstructor.h \
314         JavaScriptCore/runtime/ErrorInstance.cpp \
315         JavaScriptCore/runtime/ErrorInstance.h \
316         JavaScriptCore/runtime/ErrorPrototype.cpp \
317         JavaScriptCore/runtime/ErrorPrototype.h \
318         JavaScriptCore/runtime/FunctionConstructor.cpp \
319         JavaScriptCore/runtime/FunctionConstructor.h \
320         JavaScriptCore/runtime/FunctionPrototype.cpp \
321         JavaScriptCore/runtime/FunctionPrototype.h \
322         JavaScriptCore/runtime/GetterSetter.cpp \
323         JavaScriptCore/runtime/GetterSetter.h \
324         JavaScriptCore/runtime/GlobalEvalFunction.cpp \
325         JavaScriptCore/runtime/GlobalEvalFunction.h \
326         JavaScriptCore/runtime/Identifier.cpp \
327         JavaScriptCore/runtime/Identifier.h \
328         JavaScriptCore/runtime/InternalFunction.cpp \
329         JavaScriptCore/runtime/InternalFunction.h \
330         JavaScriptCore/runtime/Completion.cpp \
331         JavaScriptCore/runtime/JSArray.cpp \
332         JavaScriptCore/runtime/JSArray.h \
333         JavaScriptCore/runtime/JSCell.cpp \
334         JavaScriptCore/runtime/JSCell.h \
335         JavaScriptCore/runtime/JSFunction.cpp \
336         JavaScriptCore/runtime/JSFunction.h \
337         JavaScriptCore/runtime/JSGlobalObject.cpp \
338         JavaScriptCore/runtime/JSGlobalObject.h \
339         JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp \
340         JavaScriptCore/runtime/JSGlobalObjectFunctions.h \
341         JavaScriptCore/runtime/JSImmediate.cpp \
342         JavaScriptCore/runtime/JSImmediate.h \
343         JavaScriptCore/runtime/JSLock.cpp \
344         JavaScriptCore/runtime/JSLock.h \
345         JavaScriptCore/runtime/JSNumberCell.cpp \
346         JavaScriptCore/runtime/JSNumberCell.h \
347         JavaScriptCore/runtime/JSObject.cpp \
348         JavaScriptCore/runtime/JSObject.h \
349         JavaScriptCore/runtime/JSStaticScopeObject.cpp \
350         JavaScriptCore/runtime/JSStaticScopeObject.h \
351         JavaScriptCore/runtime/JSString.cpp \
352         JavaScriptCore/runtime/JSString.h \
353         JavaScriptCore/runtime/JSType.h \
354         JavaScriptCore/runtime/JSValue.cpp \
355         JavaScriptCore/runtime/JSValue.h \
356         JavaScriptCore/runtime/JSVariableObject.cpp \
357         JavaScriptCore/runtime/JSVariableObject.h \
358         JavaScriptCore/runtime/JSWrapperObject.cpp \
359         JavaScriptCore/runtime/JSWrapperObject.h \
360         JavaScriptCore/runtime/Lookup.cpp \
361         JavaScriptCore/runtime/Lookup.h \
362         JavaScriptCore/runtime/MathObject.cpp \
363         JavaScriptCore/runtime/MathObject.h \
364         JavaScriptCore/runtime/NativeErrorConstructor.cpp \
365         JavaScriptCore/runtime/NativeErrorConstructor.h \
366         JavaScriptCore/runtime/NativeErrorPrototype.cpp \
367         JavaScriptCore/runtime/NativeErrorPrototype.h \
368         JavaScriptCore/runtime/NumberConstructor.cpp \
369         JavaScriptCore/runtime/NumberConstructor.h \
370         JavaScriptCore/runtime/NumberObject.cpp \
371         JavaScriptCore/runtime/NumberObject.h \
372         JavaScriptCore/runtime/NumberPrototype.cpp \
373         JavaScriptCore/runtime/NumberPrototype.h \
374         JavaScriptCore/runtime/ObjectConstructor.cpp \
375         JavaScriptCore/runtime/ObjectConstructor.h \
376         JavaScriptCore/runtime/ObjectPrototype.cpp \
377         JavaScriptCore/runtime/ObjectPrototype.h \
378         JavaScriptCore/runtime/Operations.cpp \
379         JavaScriptCore/runtime/Operations.h \
380         JavaScriptCore/runtime/PropertyMapHashTable.h \
381         JavaScriptCore/runtime/PropertyNameArray.cpp \
382         JavaScriptCore/runtime/PropertyNameArray.h \
383         JavaScriptCore/runtime/PropertySlot.cpp \
384         JavaScriptCore/runtime/PropertySlot.h \
385         JavaScriptCore/runtime/Protect.h \
386         JavaScriptCore/runtime/PrototypeFunction.cpp \
387         JavaScriptCore/runtime/PrototypeFunction.h \
388         JavaScriptCore/runtime/PutPropertySlot.h \
389         JavaScriptCore/runtime/RegExp.cpp \
390         JavaScriptCore/runtime/RegExp.h \
391         JavaScriptCore/runtime/RegExpConstructor.cpp \
392         JavaScriptCore/runtime/RegExpConstructor.h \
393         JavaScriptCore/runtime/RegExpMatchesArray.h \
394         JavaScriptCore/runtime/RegExpObject.cpp \
395         JavaScriptCore/runtime/RegExpObject.h \
396         JavaScriptCore/runtime/RegExpPrototype.cpp \
397         JavaScriptCore/runtime/RegExpPrototype.h \
398         JavaScriptCore/runtime/ScopeChain.cpp \
399         JavaScriptCore/runtime/ScopeChain.h \
400         JavaScriptCore/runtime/ScopeChainMark.h \
401         JavaScriptCore/runtime/StringConstructor.cpp \
402         JavaScriptCore/runtime/StringConstructor.h \
403         JavaScriptCore/runtime/StringObject.cpp \
404         JavaScriptCore/runtime/StringObject.h \
405         JavaScriptCore/runtime/StringObjectThatMasqueradesAsUndefined.h \
406         JavaScriptCore/runtime/StringPrototype.cpp \
407         JavaScriptCore/runtime/StringPrototype.h \
408         JavaScriptCore/runtime/SymbolTable.h \
409         JavaScriptCore/runtime/Tracing.h \
410         JavaScriptCore/runtime/UString.cpp \
411         JavaScriptCore/runtime/UString.h \
412         JavaScriptCore/wtf/FastMalloc.cpp \
413         JavaScriptCore/wtf/FastMalloc.h \
414         JavaScriptCore/wtf/MallocZoneSupport.h \
415         JavaScriptCore/wtf/TCSystemAlloc.cpp \
416         JavaScriptCore/wtf/TCSystemAlloc.h \
417         JavaScriptCore/wtf/dtoa.cpp \
418         JavaScriptCore/wtf/dtoa.h
419
420 else
421 javascriptcore_built_nosources += \
422         DerivedSources/Grammar.cpp \
423         DerivedSources/Grammar.h
424
425 javascriptcore_sources += \
426         JavaScriptCore/AllInOneFile.cpp
427 endif # END ENABLE_DEBUG
428
429 DerivedSources/Grammar.h: DerivedSources/Grammar.cpp;
430
431 DerivedSources/Grammar.cpp: $(srcdir)/JavaScriptCore/parser/Grammar.y
432         $(BISON) -d -p kjsyy $(srcdir)/JavaScriptCore/parser/Grammar.y -o $@ > bison_out.txt 2>&1
433         $(PERL) -p -e 'END { if ($$conflict) { unlink "Grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt
434         cat $(GENSOURCES)/Grammar.hpp > $(GENSOURCES)/Grammar.h
435         rm -f $(GENSOURCES)/Grammar.hpp bison_out.txt
436
437 DerivedSources/Lexer.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/parser/Keywords.table
438         $(PERL) $^ > $@
439
440 JavaScriptCore/%.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/%.cpp
441         $(PERL) $^ -i > $@
442
443 JavaScriptCore/pcre/chartables.c: $(srcdir)/JavaScriptCore/pcre/dftables
444         $(PERL) $^ $@
445
446 bin_PROGRAMS += \
447         Programs/jsc
448
449 noinst_PROGRAMS += \
450         Programs/minidom
451
452 # minidom
453 Programs_minidom_SOURCES = \
454         JavaScriptCore/API/tests/JSNode.c \
455         JavaScriptCore/API/tests/JSNode.h \
456         JavaScriptCore/API/tests/JSNodeList.c \
457         JavaScriptCore/API/tests/JSNodeList.h \
458         JavaScriptCore/API/tests/Node.c \
459         JavaScriptCore/API/tests/Node.h \
460         JavaScriptCore/API/tests/NodeList.c \
461         JavaScriptCore/API/tests/NodeList.h \
462         JavaScriptCore/API/tests/minidom.c
463
464 Programs_minidom_CPPFLAGS = \
465         $(global_cppflags) \
466         $(javascriptcore_cppflags)
467
468 Programs_minidom_CFLAGS = \
469         -ansi \
470         -fno-strict-aliasing \
471         -O2 \
472         $(global_cflags) \
473         $(GLOBALDEPS_CFLAGS)
474
475 Programs_minidom_LDADD = \
476          libJavaScriptCore.la \
477          -lm \
478          -lstdc++
479
480 # jsc
481 Programs_jsc_SOURCES = \
482         JavaScriptCore/jsc.cpp
483
484 Programs_jsc_CPPFLAGS = \
485         $(global_cppflags) \
486         $(javascriptcore_cppflags)
487
488 Programs_jsc_CXXFLAGS = \
489         -fno-strict-aliasing \
490         -O2 \
491         $(global_cxxflags) \
492         $(global_cflags) \
493         $(GLOBALDEPS_CFLAGS) \
494         $(UNICODE_CFLAGS)
495
496 Programs_jsc_LDADD = \
497         libJavaScriptCore.la
498
499 javascriptcore_dist += \
500         $(CREATE_HASH_TABLE) \
501         JavaScriptCore/AUTHORS \
502         JavaScriptCore/COPYING.LIB \
503         JavaScriptCore/ChangeLog \
504         JavaScriptCore/THANKS \
505         JavaScriptCore/icu/LICENSE \
506         JavaScriptCore/icu/README \
507         JavaScriptCore/pcre/COPYING \
508         JavaScriptCore/pcre/AUTHORS \
509         JavaScriptCore/pcre/dftables \
510         JavaScriptCore/pcre/ucptable.cpp \
511         JavaScriptCore/parser/Grammar.y \
512         JavaScriptCore/parser/Keywords.table
513
514 # Clean rules for JavaScriptCore
515 CLEANFILES += \
516         JavaScriptCore/runtime/ArrayPrototype.lut.h \
517         JavaScriptCore/runtime/DatePrototype.lut.h \
518         JavaScriptCore/runtime/MathObject.lut.h \
519         JavaScriptCore/runtime/NumberConstructor.lut.h \
520         JavaScriptCore/runtime/RegExpConstructor.lut.h \
521         JavaScriptCore/runtime/RegExpObject.lut.h \
522         JavaScriptCore/runtime/StringPrototype.lut.h \
523         JavaScriptCore/pcre/chartables.c \
524         Programs/jsc \
525         Programs/minidom