2011-06-03 Oliver Hunt <oliver@apple.com>
[WebKit-https.git] / Source / JavaScriptCore / GNUmakefile.am
1 include $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
2
3 lib_LTLIBRARIES += \
4         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
5
6 # We are going to make everything public for now. When
7 # https://bugs.webkit.org/show_bug.cgi?id=27551 is fixed we'll able to
8 # simply rely on the usual symbol visibility flags.
9 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
10         -version-info @LIBWEBKITGTK_VERSION@ \
11         $(no_undefined)
12
13 nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
14         $(javascriptcore_built_nosources)
15
16 nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
17         $(javascriptcore_built_sources)
18
19 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
20 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
21
22 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
23         $(javascriptcore_sources)
24
25 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
26         $(UNICODE_LIBS) \
27         $(GLIB_LIBS) \
28         $(WINMM_LIBS) \
29         -lpthread
30
31 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
32         $(global_cxxflags) \
33         $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
34
35 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
36         -fstrict-aliasing \
37         -O3 \
38         $(global_cflags) \
39         $(GLIB_CFLAGS) \
40         $(UNICODE_CFLAGS)
41
42 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
43         $(global_cppflags) \
44         $(javascriptcore_cppflags)
45
46 javascriptcore_cppflags += \
47         -I$(srcdir)/Source \
48         -I$(srcdir)/Source/JavaScriptCore \
49         -I$(srcdir)/Source/JavaScriptCore/API \
50         -I$(srcdir)/Source/JavaScriptCore/assembler \
51         -I$(srcdir)/Source/JavaScriptCore/bytecode \
52         -I$(srcdir)/Source/JavaScriptCore/bytecompiler \
53         -I$(srcdir)/Source/JavaScriptCore/heap \
54         -I$(srcdir)/Source/JavaScriptCore/debugger \
55         -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
56         -I$(srcdir)/Source/JavaScriptCore/interpreter \
57         -I$(srcdir)/Source/JavaScriptCore/jit \
58         -I$(srcdir)/Source/JavaScriptCore/jit \
59         -I$(srcdir)/Source/JavaScriptCore/parser \
60         -I$(srcdir)/Source/JavaScriptCore/profiler \
61         -I$(srcdir)/Source/JavaScriptCore/runtime \
62         -I$(srcdir)/Source/JavaScriptCore/wtf \
63         -I$(srcdir)/Source/JavaScriptCore/wtf \
64         -I$(srcdir)/Source/JavaScriptCore/wtf/gobject \
65         -I$(srcdir)/Source/JavaScriptCore/wtf/gtk \
66         -I$(srcdir)/Source/JavaScriptCore/wtf/text \
67         -I$(srcdir)/Source/JavaScriptCore/wtf/unicode \
68         -I$(srcdir)/Source/JavaScriptCore/yarr \
69         -I$(top_builddir)/Source/JavaScriptCore \
70         -I$(top_builddir)/Source/JavaScriptCore/parser \
71         -I$(top_builddir)/Source/JavaScriptCore/runtime
72
73 Source/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
74         $(AM_V_GEN)$(PERL) $^ > $@
75
76 Source/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/%.cpp
77         $(AM_V_GEN)$(PERL) $^ -i > $@
78
79 Source/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
80         $(AM_V_GEN)$(PYTHON) $^ > $@
81
82 Source/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
83         $(AM_V_GEN)$(PYTHON) $^ > $@
84
85 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
86
87 bin_PROGRAMS += \
88         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
89
90 noinst_PROGRAMS += \
91         Programs/jsc \
92         Programs/minidom
93
94 Programs_minidom_CPPFLAGS = \
95         $(global_cppflags) \
96         $(javascriptcore_cppflags)
97
98 Programs_minidom_CFLAGS = \
99         -ansi \
100         -fno-strict-aliasing \
101         $(global_cflags) \
102         $(GLOBALDEPS_CFLAGS)
103
104 Programs_minidom_LDADD = \
105         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
106         $(WINMM_LIBS) \
107         -lm \
108         -lpthread \
109         -lstdc++
110
111 Programs_minidom_LDFLAGS = \
112         -no-install \
113         -no-fast-install
114
115 # jsc
116 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
117         $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
118 Programs_jsc_LDADD =
119 Programs_jsc_SOURCES =
120
121 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
122         $(global_cppflags) \
123         $(javascriptcore_cppflags)
124
125 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
126         -fno-strict-aliasing \
127         $(global_cxxflags) \
128         $(global_cflags) \
129         $(GLOBALDEPS_CFLAGS) \
130         $(UNICODE_CFLAGS)
131
132 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
133         -lpthread \
134         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
135         $(WINMM_LIBS)
136
137 EXTRA_DIST += \
138         Source/JavaScriptCore/AUTHORS \
139         Source/JavaScriptCore/ChangeLog \
140         Source/JavaScriptCore/COPYING.LIB \
141         Source/JavaScriptCore/create_hash_table \
142         Source/JavaScriptCore/create_regex_tables \
143         Source/JavaScriptCore/icu/LICENSE \
144         Source/JavaScriptCore/icu/README \
145         Source/JavaScriptCore/parser/Keywords.table \
146         Source/JavaScriptCore/THANKS
147
148 # Clean rules for JavaScriptCore
149 # FIXME: Should this list be generated from javascriptcore_built_nosources?
150 CLEANFILES += \
151         Source/JavaScriptCore/Lexer.lut.h \
152         Source/JavaScriptCore/RegExpJitTables.h \
153         Source/JavaScriptCore/runtime/ArrayConstructor.lut.h \
154         Source/JavaScriptCore/runtime/ArrayPrototype.lut.h \
155         Source/JavaScriptCore/runtime/BooleanPrototype.lut.h \
156         Source/JavaScriptCore/runtime/DateConstructor.lut.h \
157         Source/JavaScriptCore/runtime/DatePrototype.lut.h \
158         Source/JavaScriptCore/runtime/ErrorPrototype.lut.h \
159         Source/JavaScriptCore/runtime/JSGlobalObject.lut.h \
160         Source/JavaScriptCore/runtime/JSONObject.lut.h \
161         Source/JavaScriptCore/runtime/MathObject.lut.h \
162         Source/JavaScriptCore/runtime/NumberConstructor.lut.h \
163         Source/JavaScriptCore/runtime/NumberPrototype.lut.h \
164         Source/JavaScriptCore/runtime/ObjectConstructor.lut.h \
165         Source/JavaScriptCore/runtime/ObjectPrototype.lut.h \
166         Source/JavaScriptCore/runtime/RegExpConstructor.lut.h \
167         Source/JavaScriptCore/runtime/RegExpObject.lut.h \
168         Source/JavaScriptCore/runtime/RegExpPrototype.lut.h \
169         Source/JavaScriptCore/runtime/StringConstructor.lut.h \
170         Source/JavaScriptCore/runtime/StringPrototype.lut.h \
171         Programs/jsc \
172         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
173         Programs/minidom