Refactor static getter function prototype to include thisValue in addition to the...
[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 jsc_lib_for_dep = libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
7 $(jsc_lib_for_dep): $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
8
9 # We are going to make everything public for now. When
10 # https://bugs.webkit.org/show_bug.cgi?id=27551 is fixed we'll able to
11 # simply rely on the usual symbol visibility flags.
12 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
13         -version-info @LIBJAVASCRIPTCOREGTK_VERSION@ \
14         $(no_undefined)
15
16 nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
17         $(javascriptcore_built_nosources)
18
19 nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
20         $(javascriptcore_built_sources)
21
22 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(libwebkitgtkincludedir)/JavaScriptCore
23 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
24
25 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
26         $(javascriptcore_sources)
27
28 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
29         -lpthread \
30         libWTF.la \
31         $(GLIB_LIBS) \
32         $(LLVM_LIBS) \
33         $(UNICODE_LIBS) \
34         $(WINMM_LIBS)
35
36 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
37         $(global_cxxflags) \
38         $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
39
40 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
41         -fstrict-aliasing \
42         -O3 \
43         $(javascriptcore_cflags)
44
45 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
46         $(global_cppflags) \
47         $(javascriptcore_cppflags)
48
49 javascriptcore_cppflags += \
50         -I$(srcdir)/Source \
51         -I$(srcdir)/Source/JavaScriptCore \
52         -I$(srcdir)/Source/JavaScriptCore/API \
53         -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
54         -I$(srcdir)/Source/JavaScriptCore/assembler \
55         -I$(srcdir)/Source/JavaScriptCore/bytecode \
56         -I$(srcdir)/Source/JavaScriptCore/bytecompiler \
57         -I$(srcdir)/Source/JavaScriptCore/debugger \
58         -I$(srcdir)/Source/JavaScriptCore/dfg \
59         -I$(srcdir)/Source/JavaScriptCore/disassembler \
60         -I$(srcdir)/Source/JavaScriptCore/ftl \
61         -I$(srcdir)/Source/JavaScriptCore/heap \
62         -I$(srcdir)/Source/JavaScriptCore/inspector \
63         -I$(srcdir)/Source/JavaScriptCore/interpreter \
64         -I$(srcdir)/Source/JavaScriptCore/jit \
65         -I$(srcdir)/Source/JavaScriptCore/llint \
66         -I$(srcdir)/Source/JavaScriptCore/parser \
67         -I$(srcdir)/Source/JavaScriptCore/profiler \
68         -I$(srcdir)/Source/JavaScriptCore/runtime \
69         -I$(srcdir)/Source/JavaScriptCore/tools \
70         -I$(srcdir)/Source/JavaScriptCore/yarr \
71         -I$(top_builddir)/DerivedSources/JavaScriptCore \
72         -I$(srcdir)/Source/WTF \
73         $(LLVM_CFLAGS)
74
75 javascriptcore_cflags += \
76         $(global_cflags) \
77         $(GLIB_CFLAGS) \
78         $(LLVM_CFLAGS) \
79         $(UNICODE_CFLAGS)
80
81 pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
82
83 $(shell mkdir -p DerivedSources/JavaScriptCore)
84
85 DerivedSources/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
86         $(AM_V_GEN)$(PERL) $^ > $@
87
88 DerivedSources/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/runtime/%.cpp
89         $(AM_V_GEN)$(PERL) $^ -i > $@
90
91 DerivedSources/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
92         $(AM_V_GEN)$(PYTHON) $^ > $@
93
94 DerivedSources/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
95         $(AM_V_GEN)$(PYTHON) $^ > $@
96
97 DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h: $(javascriptcore_sources) $(llint_nosources) $(offlineasm_nosources)
98         $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm $@
99
100 $(Programs_LLIntOffsetsExtractor_OBJECTS): DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
101
102 DerivedSources/JavaScriptCore/LLIntAssembly.h: Programs/LLIntOffsetsExtractor$(EXEEXT)
103         $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/asm.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm Programs/LLIntOffsetsExtractor$(EXEEXT) $@
104
105 $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_OBJECTS): DerivedSources/JavaScriptCore/LLIntAssembly.h
106
107 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
108
109 bin_PROGRAMS += \
110         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
111
112 noinst_PROGRAMS += \
113         Programs/jsc \
114         Programs/minidom \
115         Programs/LLIntOffsetsExtractor
116
117 Programs_minidom_CPPFLAGS = \
118         $(global_cppflags) \
119         $(javascriptcore_cppflags)
120
121 Programs_minidom_CFLAGS = \
122         -ansi \
123         -fno-strict-aliasing \
124         $(global_cflags) \
125         $(GLOBALDEPS_CFLAGS)
126
127 Programs_minidom_LDADD = \
128         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
129         $(WINMM_LIBS) \
130         -lm \
131         -lpthread \
132         -lstdc++
133
134 Programs_minidom_LDFLAGS = \
135         -no-install \
136         -no-fast-install
137
138 Programs_LLIntOffsetsExtractor_CPPFLAGS = \
139         $(global_cppflags) \
140         $(javascriptcore_cppflags)
141
142 Programs_LLIntOffsetsExtractor_CFLAGS = \
143         -ansi \
144         -fno-strict-aliasing \
145         $(global_cflags) \
146         $(GLOBALDEPS_CFLAGS)
147
148 Programs_LLIntOffsetsExtractor_LDADD = \
149         -lpthread \
150         libWTF.la \
151         $(UNICODE_LIBS) \
152         $(GLIB_LIBS) \
153         $(WINMM_LIBS) \
154         -lm \
155         -lpthread \
156         -lstdc++
157
158 Programs_LLIntOffsetsExtractor_LDFLAGS = \
159         -no-install \
160         -no-fast-install
161
162 # jsc
163 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
164         $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
165 Programs_jsc_LDADD =
166 Programs_jsc_SOURCES =
167
168 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
169         $(global_cppflags) \
170         $(javascriptcore_cppflags)
171
172 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
173         -fno-strict-aliasing \
174         $(global_cxxflags) \
175         $(global_cflags) \
176         $(GLOBALDEPS_CFLAGS) \
177         $(UNICODE_CFLAGS)
178
179 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
180         -lpthread \
181         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
182         $(WINMM_LIBS)
183
184 EXTRA_DIST += \
185         Source/JavaScriptCore/AUTHORS \
186         Source/JavaScriptCore/ChangeLog \
187         Source/JavaScriptCore/COPYING.LIB \
188         Source/JavaScriptCore/create_hash_table \
189         Source/JavaScriptCore/create_regex_tables \
190         Source/JavaScriptCore/icu/LICENSE \
191         Source/JavaScriptCore/icu/README \
192         Source/JavaScriptCore/KeywordLookupGenerator.py \
193         Source/JavaScriptCore/parser/Keywords.table \
194         Source/JavaScriptCore/THANKS \
195         $(llint_nosources) \
196         $(offlineasm_nosources)
197
198 CLEANFILES += \
199         $(javascriptcore_built_nosources) \
200         Programs/jsc \
201         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
202         Programs/LLIntOffsetsExtractor \
203         Programs/minidom
204
205 DISTCLEANFILES += \
206         $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
207
208 if ENABLE_INTROSPECTION
209 # The GIR file is generated via autoconf, as we don't need to run the scanner against non-GObject libraries.
210 JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib: JavaScriptCore-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
211         $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit) --includedir $(top_builddir) $< -o $@
212
213 gir_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir
214 typelibs_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib
215 CLEANFILES += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib
216 endif