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