2009-06-25 Dimitri Glazkov <dglazkov@chromium.org>
[webbrowser.git] / JavaScriptCore / GNUmakefile.am
blobd376b78899901fd9789c3726078706dfa7de0c01
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
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
34 javascriptcore_built_nosources += \
35         DerivedSources/Lexer.lut.h \
36         JavaScriptCore/runtime/ArrayPrototype.lut.h \
37         JavaScriptCore/runtime/DatePrototype.lut.h \
38         JavaScriptCore/runtime/JSONObject.lut.h \
39         JavaScriptCore/runtime/MathObject.lut.h \
40         JavaScriptCore/runtime/NumberConstructor.lut.h \
41         JavaScriptCore/runtime/RegExpConstructor.lut.h \
42         JavaScriptCore/runtime/RegExpObject.lut.h \
43         JavaScriptCore/runtime/StringPrototype.lut.h \
44         JavaScriptCore/pcre/chartables.c
46 javascriptcore_sources += \
47         JavaScriptCore/API/APICast.h \
48         JavaScriptCore/API/JSBase.cpp \
49         JavaScriptCore/API/JSBasePrivate.h \
50         JavaScriptCore/API/JSCallbackConstructor.cpp \
51         JavaScriptCore/API/JSCallbackConstructor.h \
52         JavaScriptCore/API/JSCallbackFunction.cpp \
53         JavaScriptCore/API/JSCallbackFunction.h \
54         JavaScriptCore/API/JSCallbackObject.cpp \
55         JavaScriptCore/API/JSCallbackObject.h \
56         JavaScriptCore/API/JSCallbackObjectFunctions.h \
57         JavaScriptCore/API/JSClassRef.cpp \
58         JavaScriptCore/API/JSClassRef.h \
59         JavaScriptCore/API/JSContextRef.cpp \
60         JavaScriptCore/API/JSObjectRef.cpp \
61         JavaScriptCore/API/JSRetainPtr.h \
62         JavaScriptCore/API/JSStringRef.cpp \
63         JavaScriptCore/API/JSValueRef.cpp \
64         JavaScriptCore/API/OpaqueJSString.cpp \
65         JavaScriptCore/API/OpaqueJSString.h \
66         JavaScriptCore/ForwardingHeaders/JavaScriptCore/APICast.h \
67         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSBase.h \
68         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSContextRef.h \
69         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSObjectRef.h \
70         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSRetainPtr.h \
71         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRef.h \
72         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSStringRefCF.h \
73         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JSValueRef.h \
74         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScript.h \
75         JavaScriptCore/ForwardingHeaders/JavaScriptCore/JavaScriptCore.h \
76         JavaScriptCore/ForwardingHeaders/JavaScriptCore/OpaqueJSString.h \
77         JavaScriptCore/ForwardingHeaders/JavaScriptCore/WebKitAvailability.h \
78         JavaScriptCore/JavaScriptCorePrefix.h \
79         JavaScriptCore/jit/ExecutableAllocator.h \
80         JavaScriptCore/jit/JIT.cpp \
81         JavaScriptCore/jit/JITOpcodes.cpp \
82         JavaScriptCore/jit/JITCall.cpp \
83         JavaScriptCore/jit/JITCode.h \
84         JavaScriptCore/jit/JITPropertyAccess.cpp \
85         JavaScriptCore/jit/JITArithmetic.cpp \
86         JavaScriptCore/jit/ExecutableAllocator.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/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/MacroAssemblerCodeRef.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/JSONObject.cpp \
186         JavaScriptCore/runtime/JSONObject.h \
187         JavaScriptCore/runtime/JSPropertyNameIterator.cpp \
188         JavaScriptCore/runtime/JSPropertyNameIterator.h \
189         JavaScriptCore/runtime/LiteralParser.cpp \
190         JavaScriptCore/runtime/LiteralParser.h \
191         JavaScriptCore/runtime/SmallStrings.cpp \
192         JavaScriptCore/runtime/SmallStrings.h \
193         JavaScriptCore/runtime/Structure.cpp \
194         JavaScriptCore/runtime/Structure.h \
195         JavaScriptCore/runtime/StructureChain.cpp \
196         JavaScriptCore/runtime/StructureChain.h \
197         JavaScriptCore/runtime/StructureTransitionTable.h \
198         JavaScriptCore/runtime/TypeInfo.h \
199         JavaScriptCore/wrec/CharacterClass.h \
200         JavaScriptCore/wrec/CharacterClassConstructor.h \
201         JavaScriptCore/wrec/Escapes.h \
202         JavaScriptCore/wrec/Quantifier.h \
203         JavaScriptCore/wrec/WREC.h \
204         JavaScriptCore/wrec/WRECFunctors.h \
205         JavaScriptCore/wrec/WRECGenerator.h \
206         JavaScriptCore/wrec/WRECParser.h \
207         JavaScriptCore/wtf/ASCIICType.h \
208         JavaScriptCore/wtf/AVLTree.h \
209         JavaScriptCore/wtf/AlwaysInline.h \
210         JavaScriptCore/wtf/Assertions.cpp \
211         JavaScriptCore/wtf/Assertions.h \
212         JavaScriptCore/wtf/ByteArray.cpp \
213         JavaScriptCore/wtf/ByteArray.h \
214         JavaScriptCore/wtf/CrossThreadRefCounted.h \
215         JavaScriptCore/wtf/OwnFastMallocPtr.h \
216         JavaScriptCore/wtf/CurrentTime.cpp \
217         JavaScriptCore/wtf/CurrentTime.h \
218         JavaScriptCore/wtf/DateMath.cpp \
219         JavaScriptCore/wtf/DateMath.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/OwnPtrCommon.h \
246         JavaScriptCore/wtf/PassOwnPtr.h \
247         JavaScriptCore/wtf/PassRefPtr.h \
248         JavaScriptCore/wtf/Platform.h \
249         JavaScriptCore/wtf/PtrAndFlags.h \
250         JavaScriptCore/wtf/RandomNumber.cpp \
251         JavaScriptCore/wtf/RandomNumber.h \
252         JavaScriptCore/wtf/RandomNumberSeed.h \
253         JavaScriptCore/wtf/RefCounted.h \
254         JavaScriptCore/wtf/RefCountedLeakCounter.cpp \
255         JavaScriptCore/wtf/RefCountedLeakCounter.h \
256         JavaScriptCore/wtf/RefPtr.h \
257         JavaScriptCore/wtf/RefPtrHashMap.h \
258         JavaScriptCore/wtf/RetainPtr.h \
259         JavaScriptCore/wtf/SegmentedVector.h \
260         JavaScriptCore/wtf/StdLibExtras.h \
261         JavaScriptCore/wtf/StringExtras.h \
262         JavaScriptCore/wtf/TCPackedCache.h \
263         JavaScriptCore/wtf/TCPageMap.h \
264         JavaScriptCore/wtf/TCSpinLock.h \
265         JavaScriptCore/wtf/ThreadSpecific.h \
266         JavaScriptCore/wtf/Threading.h \
267         JavaScriptCore/wtf/Threading.cpp \
268         JavaScriptCore/wtf/ThreadingPthreads.cpp \
269         JavaScriptCore/wtf/TypeTraits.cpp \
270         JavaScriptCore/wtf/TypeTraits.h \
271         JavaScriptCore/wtf/UnusedParam.h \
272         JavaScriptCore/wtf/Vector.h \
273         JavaScriptCore/wtf/VectorTraits.h \
274         JavaScriptCore/wtf/gtk/MainThreadGtk.cpp \
275         JavaScriptCore/wtf/gtk/ThreadingGtk.cpp \
276         JavaScriptCore/wtf/unicode/Collator.h \
277         JavaScriptCore/wtf/unicode/CollatorDefault.cpp \
278         JavaScriptCore/wtf/unicode/UTF8.cpp \
279         JavaScriptCore/wtf/unicode/UTF8.h \
280         JavaScriptCore/wtf/unicode/Unicode.h
282 if TARGET_WIN32
283 javascriptcore_sources += \
284         JavaScriptCore/wtf/ThreadSpecificWin.cpp \
285         JavaScriptCore/jit/ExecutableAllocatorWin.cpp
286 else
287 javascriptcore_sources += \
288         JavaScriptCore/jit/ExecutableAllocatorPosix.cpp
289 endif
291 # ----
292 # icu unicode backend
293 # ----
294 if USE_ICU_UNICODE
295 javascriptcore_sources += \
296         JavaScriptCore/wtf/unicode/icu/CollatorICU.cpp \
297         JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
298 endif # USE_ICU_UNICODE
300 # ----
301 # glib unicode backend
302 # ----
303 if USE_GLIB_UNICODE
304 javascriptcore_sources += \
305         JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h \
306         JavaScriptCore/wtf/unicode/glib/UnicodeGLib.cpp \
307         JavaScriptCore/wtf/unicode/glib/UnicodeMacrosFromICU.h
308 endif
310 javascriptcore_sources += \
311         JavaScriptCore/wtf/VMTags.h \
312         JavaScriptCore/yarr/RegexCompiler.cpp \
313         JavaScriptCore/yarr/RegexCompiler.h \
314         JavaScriptCore/yarr/RegexInterpreter.cpp \
315         JavaScriptCore/yarr/RegexInterpreter.h \
316         JavaScriptCore/yarr/RegexJIT.cpp \
317         JavaScriptCore/yarr/RegexJIT.h \
318         JavaScriptCore/yarr/RegexParser.h \
319         JavaScriptCore/yarr/RegexPattern.h
321 # Debug build
322 if ENABLE_DEBUG
323 javascriptcore_built_sources += \
324         DerivedSources/Grammar.cpp \
325         DerivedSources/Grammar.h
327 javascriptcore_sources += \
328         JavaScriptCore/interpreter/RegisterFile.cpp \
329         JavaScriptCore/interpreter/RegisterFile.h \
330         JavaScriptCore/bytecompiler/BytecodeGenerator.cpp \
331         JavaScriptCore/bytecompiler/BytecodeGenerator.h \
332         JavaScriptCore/bytecompiler/LabelScope.h \
333         JavaScriptCore/debugger/Debugger.cpp \
334         JavaScriptCore/debugger/Debugger.h \
335         JavaScriptCore/parser/Lexer.cpp \
336         JavaScriptCore/parser/Lexer.h \
337         JavaScriptCore/parser/NodeConstructors.h \
338         JavaScriptCore/parser/NodeInfo.h \
339         JavaScriptCore/parser/Nodes.cpp \
340         JavaScriptCore/parser/Nodes.h \
341         JavaScriptCore/parser/Parser.cpp \
342         JavaScriptCore/parser/Parser.h \
343         JavaScriptCore/parser/ParserArena.cpp \
344         JavaScriptCore/parser/ParserArena.h \
345         JavaScriptCore/parser/ResultType.h \
346         JavaScriptCore/parser/SourceCode.h \
347         JavaScriptCore/parser/SourceProvider.h \
348         JavaScriptCore/runtime/ArgList.cpp \
349         JavaScriptCore/runtime/ArgList.h \
350         JavaScriptCore/runtime/Arguments.cpp \
351         JavaScriptCore/runtime/Arguments.h \
352         JavaScriptCore/runtime/ArrayConstructor.cpp \
353         JavaScriptCore/runtime/ArrayConstructor.h \
354         JavaScriptCore/runtime/ArrayPrototype.cpp \
355         JavaScriptCore/runtime/ArrayPrototype.h \
356         JavaScriptCore/runtime/BatchedTransitionOptimizer.h \
357         JavaScriptCore/runtime/BooleanConstructor.cpp \
358         JavaScriptCore/runtime/BooleanConstructor.h \
359         JavaScriptCore/runtime/BooleanObject.cpp \
360         JavaScriptCore/runtime/BooleanObject.h \
361         JavaScriptCore/runtime/BooleanPrototype.cpp \
362         JavaScriptCore/runtime/BooleanPrototype.h \
363         JavaScriptCore/runtime/CallData.cpp \
364         JavaScriptCore/runtime/CallData.h \
365         JavaScriptCore/runtime/ClassInfo.h \
366         JavaScriptCore/runtime/Collector.cpp \
367         JavaScriptCore/runtime/Collector.h \
368         JavaScriptCore/runtime/CollectorHeapIterator.h \
369         JavaScriptCore/runtime/CommonIdentifiers.cpp \
370         JavaScriptCore/runtime/CommonIdentifiers.h \
371         JavaScriptCore/runtime/Completion.h \
372         JavaScriptCore/runtime/ConstructData.cpp \
373         JavaScriptCore/runtime/ConstructData.h \
374         JavaScriptCore/runtime/DateConstructor.cpp \
375         JavaScriptCore/runtime/DateConstructor.h \
376         JavaScriptCore/runtime/DateConversion.cpp \
377         JavaScriptCore/runtime/DateConversion.h \
378         JavaScriptCore/runtime/DateInstance.cpp \
379         JavaScriptCore/runtime/DateInstance.h \
380         JavaScriptCore/runtime/DatePrototype.cpp \
381         JavaScriptCore/runtime/DatePrototype.h \
382         JavaScriptCore/runtime/Error.cpp \
383         JavaScriptCore/runtime/Error.h \
384         JavaScriptCore/runtime/ErrorConstructor.cpp \
385         JavaScriptCore/runtime/ErrorConstructor.h \
386         JavaScriptCore/runtime/ErrorInstance.cpp \
387         JavaScriptCore/runtime/ErrorInstance.h \
388         JavaScriptCore/runtime/ErrorPrototype.cpp \
389         JavaScriptCore/runtime/ErrorPrototype.h \
390         JavaScriptCore/runtime/FunctionConstructor.cpp \
391         JavaScriptCore/runtime/FunctionConstructor.h \
392         JavaScriptCore/runtime/FunctionPrototype.cpp \
393         JavaScriptCore/runtime/FunctionPrototype.h \
394         JavaScriptCore/runtime/GetterSetter.cpp \
395         JavaScriptCore/runtime/GetterSetter.h \
396         JavaScriptCore/runtime/GlobalEvalFunction.cpp \
397         JavaScriptCore/runtime/GlobalEvalFunction.h \
398         JavaScriptCore/runtime/Identifier.cpp \
399         JavaScriptCore/runtime/Identifier.h \
400         JavaScriptCore/runtime/InternalFunction.cpp \
401         JavaScriptCore/runtime/InternalFunction.h \
402         JavaScriptCore/runtime/Completion.cpp \
403         JavaScriptCore/runtime/JSArray.cpp \
404         JavaScriptCore/runtime/JSArray.h \
405         JavaScriptCore/runtime/JSCell.cpp \
406         JavaScriptCore/runtime/JSCell.h \
407         JavaScriptCore/runtime/JSFunction.cpp \
408         JavaScriptCore/runtime/JSFunction.h \
409         JavaScriptCore/runtime/JSGlobalObject.cpp \
410         JavaScriptCore/runtime/JSGlobalObject.h \
411         JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp \
412         JavaScriptCore/runtime/JSGlobalObjectFunctions.h \
413         JavaScriptCore/runtime/JSImmediate.cpp \
414         JavaScriptCore/runtime/JSImmediate.h \
415         JavaScriptCore/runtime/JSLock.cpp \
416         JavaScriptCore/runtime/JSLock.h \
417         JavaScriptCore/runtime/JSNumberCell.cpp \
418         JavaScriptCore/runtime/JSNumberCell.h \
419         JavaScriptCore/runtime/JSObject.cpp \
420         JavaScriptCore/runtime/JSObject.h \
421         JavaScriptCore/runtime/JSStaticScopeObject.cpp \
422         JavaScriptCore/runtime/JSStaticScopeObject.h \
423         JavaScriptCore/runtime/JSString.cpp \
424         JavaScriptCore/runtime/JSString.h \
425         JavaScriptCore/runtime/JSType.h \
426         JavaScriptCore/runtime/JSValue.cpp \
427         JavaScriptCore/runtime/JSValue.h \
428         JavaScriptCore/runtime/JSVariableObject.cpp \
429         JavaScriptCore/runtime/JSVariableObject.h \
430         JavaScriptCore/runtime/JSWrapperObject.cpp \
431         JavaScriptCore/runtime/JSWrapperObject.h \
432         JavaScriptCore/runtime/Lookup.cpp \
433         JavaScriptCore/runtime/Lookup.h \
434         JavaScriptCore/runtime/MathObject.cpp \
435         JavaScriptCore/runtime/MathObject.h \
436         JavaScriptCore/runtime/NativeErrorConstructor.cpp \
437         JavaScriptCore/runtime/NativeErrorConstructor.h \
438         JavaScriptCore/runtime/NativeErrorPrototype.cpp \
439         JavaScriptCore/runtime/NativeErrorPrototype.h \
440         JavaScriptCore/runtime/NativeFunctionWrapper.h \
441         JavaScriptCore/runtime/NumberConstructor.cpp \
442         JavaScriptCore/runtime/NumberConstructor.h \
443         JavaScriptCore/runtime/NumberObject.cpp \
444         JavaScriptCore/runtime/NumberObject.h \
445         JavaScriptCore/runtime/NumberPrototype.cpp \
446         JavaScriptCore/runtime/NumberPrototype.h \
447         JavaScriptCore/runtime/ObjectConstructor.cpp \
448         JavaScriptCore/runtime/ObjectConstructor.h \
449         JavaScriptCore/runtime/ObjectPrototype.cpp \
450         JavaScriptCore/runtime/ObjectPrototype.h \
451         JavaScriptCore/runtime/Operations.cpp \
452         JavaScriptCore/runtime/Operations.h \
453         JavaScriptCore/runtime/PropertyMapHashTable.h \
454         JavaScriptCore/runtime/PropertyNameArray.cpp \
455         JavaScriptCore/runtime/PropertyNameArray.h \
456         JavaScriptCore/runtime/PropertySlot.cpp \
457         JavaScriptCore/runtime/PropertySlot.h \
458         JavaScriptCore/runtime/Protect.h \
459         JavaScriptCore/runtime/PrototypeFunction.cpp \
460         JavaScriptCore/runtime/PrototypeFunction.h \
461         JavaScriptCore/runtime/PutPropertySlot.h \
462         JavaScriptCore/runtime/RegExp.cpp \
463         JavaScriptCore/runtime/RegExp.h \
464         JavaScriptCore/runtime/RegExpConstructor.cpp \
465         JavaScriptCore/runtime/RegExpConstructor.h \
466         JavaScriptCore/runtime/RegExpMatchesArray.h \
467         JavaScriptCore/runtime/RegExpObject.cpp \
468         JavaScriptCore/runtime/RegExpObject.h \
469         JavaScriptCore/runtime/RegExpPrototype.cpp \
470         JavaScriptCore/runtime/RegExpPrototype.h \
471         JavaScriptCore/runtime/ScopeChain.cpp \
472         JavaScriptCore/runtime/ScopeChain.h \
473         JavaScriptCore/runtime/ScopeChainMark.h \
474         JavaScriptCore/runtime/StringConstructor.cpp \
475         JavaScriptCore/runtime/StringConstructor.h \
476         JavaScriptCore/runtime/StringObject.cpp \
477         JavaScriptCore/runtime/StringObject.h \
478         JavaScriptCore/runtime/StringObjectThatMasqueradesAsUndefined.h \
479         JavaScriptCore/runtime/StringPrototype.cpp \
480         JavaScriptCore/runtime/StringPrototype.h \
481         JavaScriptCore/runtime/SymbolTable.h \
482         JavaScriptCore/runtime/Tracing.h \
483         JavaScriptCore/runtime/UString.cpp \
484         JavaScriptCore/runtime/UString.h \
485         JavaScriptCore/wtf/FastAllocBase.h \
486         JavaScriptCore/wtf/FastMalloc.cpp \
487         JavaScriptCore/wtf/FastMalloc.h \
488         JavaScriptCore/wtf/MallocZoneSupport.h \
489         JavaScriptCore/wtf/TCSystemAlloc.cpp \
490         JavaScriptCore/wtf/TCSystemAlloc.h \
491         JavaScriptCore/wtf/dtoa.cpp \
492         JavaScriptCore/wtf/dtoa.h
494 else
495 javascriptcore_built_nosources += \
496         DerivedSources/Grammar.cpp \
497         DerivedSources/Grammar.h
499 javascriptcore_sources += \
500         JavaScriptCore/AllInOneFile.cpp \
501         JavaScriptCore/parser/ParserArena.cpp \
502         JavaScriptCore/parser/ParserArena.h
503 endif # END ENABLE_DEBUG
505 DerivedSources/Grammar.h: DerivedSources/Grammar.cpp;
507 DerivedSources/Grammar.cpp: $(srcdir)/JavaScriptCore/parser/Grammar.y
508         $(BISON) -d -p jscyy $(srcdir)/JavaScriptCore/parser/Grammar.y -o $@ > bison_out.txt 2>&1
509         $(PERL) -p -e 'END { if ($$conflict) { unlink "Grammar.cpp"; die; } } $$conflict ||= /conflict/' < bison_out.txt
510         cat $(GENSOURCES)/Grammar.hpp > $(GENSOURCES)/Grammar.h
511         rm -f $(GENSOURCES)/Grammar.hpp bison_out.txt
513 DerivedSources/Lexer.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/parser/Keywords.table
514         $(PERL) $^ > $@
516 JavaScriptCore/%.lut.h: $(CREATE_HASH_TABLE) $(srcdir)/JavaScriptCore/%.cpp
517         $(PERL) $^ -i > $@
519 JavaScriptCore/pcre/chartables.c: $(srcdir)/JavaScriptCore/pcre/dftables
520         $(PERL) $^ $@
522 bin_PROGRAMS += \
523         Programs/jsc
525 noinst_PROGRAMS += \
526         Programs/minidom
528 # minidom
529 Programs_minidom_SOURCES = \
530         JavaScriptCore/API/tests/JSNode.c \
531         JavaScriptCore/API/tests/JSNode.h \
532         JavaScriptCore/API/tests/JSNodeList.c \
533         JavaScriptCore/API/tests/JSNodeList.h \
534         JavaScriptCore/API/tests/Node.c \
535         JavaScriptCore/API/tests/Node.h \
536         JavaScriptCore/API/tests/NodeList.c \
537         JavaScriptCore/API/tests/NodeList.h \
538         JavaScriptCore/API/tests/minidom.c
540 Programs_minidom_CPPFLAGS = \
541         $(global_cppflags) \
542         $(javascriptcore_cppflags)
544 Programs_minidom_CFLAGS = \
545         -ansi \
546         -fno-strict-aliasing \
547         $(global_cflags) \
548         $(GLOBALDEPS_CFLAGS)
550 Programs_minidom_LDADD = \
551          libJavaScriptCore.la \
552          -lm \
553          -lstdc++
555 Programs_minidom_LDFLAGS = \
556         -no-install \
557         -no-fast-install
559 # jsc
560 Programs_jsc_SOURCES = \
561         JavaScriptCore/jsc.cpp
563 Programs_jsc_CPPFLAGS = \
564         $(global_cppflags) \
565         $(javascriptcore_cppflags)
567 Programs_jsc_CXXFLAGS = \
568         -fno-strict-aliasing \
569         $(global_cxxflags) \
570         $(global_cflags) \
571         $(GLOBALDEPS_CFLAGS) \
572         $(UNICODE_CFLAGS)
574 Programs_jsc_LDADD = \
575         libJavaScriptCore.la
577 javascriptcore_dist += \
578         $(CREATE_HASH_TABLE) \
579         JavaScriptCore/AUTHORS \
580         JavaScriptCore/COPYING.LIB \
581         JavaScriptCore/ChangeLog \
582         JavaScriptCore/THANKS \
583         JavaScriptCore/icu/LICENSE \
584         JavaScriptCore/icu/README \
585         JavaScriptCore/pcre/COPYING \
586         JavaScriptCore/pcre/AUTHORS \
587         JavaScriptCore/pcre/dftables \
588         JavaScriptCore/pcre/ucptable.cpp \
589         JavaScriptCore/parser/Grammar.y \
590         JavaScriptCore/parser/Keywords.table
592 # Clean rules for JavaScriptCore
593 CLEANFILES += \
594         JavaScriptCore/runtime/ArrayPrototype.lut.h \
595         JavaScriptCore/runtime/DatePrototype.lut.h \
596         JavaScriptCore/runtime/JSONObject.lut.h \
597         JavaScriptCore/runtime/MathObject.lut.h \
598         JavaScriptCore/runtime/NumberConstructor.lut.h \
599         JavaScriptCore/runtime/RegExpConstructor.lut.h \
600         JavaScriptCore/runtime/RegExpObject.lut.h \
601         JavaScriptCore/runtime/StringPrototype.lut.h \
602         JavaScriptCore/pcre/chartables.c \
603         Programs/jsc \
604         Programs/minidom