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