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