1 include $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
4 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
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 @LIBJAVASCRIPTCOREGTK_VERSION@ \
13 nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
14 $(javascriptcore_built_nosources)
16 nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
17 $(javascriptcore_built_sources)
19 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(libwebkitgtkincludedir)/JavaScriptCore
20 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
22 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
23 $(javascriptcore_sources)
25 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
32 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
34 $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
36 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
39 $(javascriptcore_cflags)
41 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
43 $(javascriptcore_cppflags)
45 javascriptcore_cppflags += \
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/dfg \
54 -I$(srcdir)/Source/JavaScriptCore/disassembler \
55 -I$(srcdir)/Source/JavaScriptCore/heap \
56 -I$(srcdir)/Source/JavaScriptCore/debugger \
57 -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
58 -I$(srcdir)/Source/JavaScriptCore/interpreter \
59 -I$(srcdir)/Source/JavaScriptCore/jit \
60 -I$(srcdir)/Source/JavaScriptCore/jit \
61 -I$(srcdir)/Source/JavaScriptCore/llint \
62 -I$(srcdir)/Source/JavaScriptCore/parser \
63 -I$(srcdir)/Source/JavaScriptCore/profiler \
64 -I$(srcdir)/Source/JavaScriptCore/runtime \
65 -I$(srcdir)/Source/JavaScriptCore/tools \
66 -I$(srcdir)/Source/JavaScriptCore/yarr \
67 -I$(top_builddir)/DerivedSources/JavaScriptCore
69 javascriptcore_cppflags += \
70 -I$(srcdir)/Source/WTF
72 javascriptcore_cflags += \
77 pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
79 $(shell mkdir -p DerivedSources/JavaScriptCore)
81 DerivedSources/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
82 $(AM_V_GEN)$(PERL) $^ > $@
84 DerivedSources/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/runtime/%.cpp
85 $(AM_V_GEN)$(PERL) $^ -i > $@
87 DerivedSources/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
88 $(AM_V_GEN)$(PYTHON) $^ > $@
90 DerivedSources/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
91 $(AM_V_GEN)$(PYTHON) $^ > $@
93 DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h: $(javascriptcore_sources) $(llint_nosources) $(offlineasm_nosources)
94 $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm $@
96 $(Programs_LLIntOffsetsExtractor_OBJECTS): DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
98 DerivedSources/JavaScriptCore/LLIntAssembly.h: Programs/LLIntOffsetsExtractor$(EXEEXT)
99 $(AM_V_GEN)$(RUBY) $(srcdir)/Source/JavaScriptCore/offlineasm/asm.rb $(srcdir)/Source/JavaScriptCore/llint/LowLevelInterpreter.asm Programs/LLIntOffsetsExtractor$(EXEEXT) $@
101 $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_OBJECTS): DerivedSources/JavaScriptCore/LLIntAssembly.h
103 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
106 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
111 Programs/LLIntOffsetsExtractor
113 Programs_minidom_CPPFLAGS = \
115 $(javascriptcore_cppflags)
117 Programs_minidom_CFLAGS = \
119 -fno-strict-aliasing \
123 Programs_minidom_LDADD = \
124 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
130 Programs_minidom_LDFLAGS = \
134 Programs_LLIntOffsetsExtractor_CPPFLAGS = \
136 $(javascriptcore_cppflags)
138 Programs_LLIntOffsetsExtractor_CFLAGS = \
140 -fno-strict-aliasing \
144 Programs_LLIntOffsetsExtractor_LDADD = \
154 Programs_LLIntOffsetsExtractor_LDFLAGS = \
159 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
160 $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
162 Programs_jsc_SOURCES =
164 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
166 $(javascriptcore_cppflags)
168 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
169 -fno-strict-aliasing \
172 $(GLOBALDEPS_CFLAGS) \
175 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
177 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
181 Source/JavaScriptCore/AUTHORS \
182 Source/JavaScriptCore/ChangeLog \
183 Source/JavaScriptCore/COPYING.LIB \
184 Source/JavaScriptCore/create_hash_table \
185 Source/JavaScriptCore/create_regex_tables \
186 Source/JavaScriptCore/icu/LICENSE \
187 Source/JavaScriptCore/icu/README \
188 Source/JavaScriptCore/KeywordLookupGenerator.py \
189 Source/JavaScriptCore/parser/Keywords.table \
190 Source/JavaScriptCore/THANKS \
192 $(offlineasm_nosources)
195 $(javascriptcore_built_nosources) \
197 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
198 Programs/LLIntOffsetsExtractor \
202 $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
204 if ENABLE_INTROSPECTION
205 # The GIR file is generated via autoconf, as we don't need to run the scanner against non-GObject libraries.
206 JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib: JavaScriptCore-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
207 $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit) --includedir $(top_builddir) $< -o $@
209 gir_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir
210 typelibs_DATA += JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib
211 CLEANFILES += JavaScriptCore-@WEBKITGTK_API_VERSION@.gir JavaScriptCore-@WEBKITGTK_API_VERSION@.typelib