[GTK] Reorganize header files
[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 = $(libwebkitgtkincludedir)/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         $(javascriptcore_cflags)
39
40 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
41         $(global_cppflags) \
42         $(javascriptcore_cppflags)
43
44 javascriptcore_cppflags += \
45         -I$(srcdir)/Source \
46         -I$(srcdir)/Source/JavaScriptCore \
47         -I$(srcdir)/Source/JavaScriptCore/API \
48         -I$(srcdir)/Source/JavaScriptCore/assembler \
49         -I$(srcdir)/Source/JavaScriptCore/bytecode \
50         -I$(srcdir)/Source/JavaScriptCore/bytecompiler \
51         -I$(srcdir)/Source/JavaScriptCore/dfg \
52         -I$(srcdir)/Source/JavaScriptCore/heap \
53         -I$(srcdir)/Source/JavaScriptCore/debugger \
54         -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
55         -I$(srcdir)/Source/JavaScriptCore/interpreter \
56         -I$(srcdir)/Source/JavaScriptCore/jit \
57         -I$(srcdir)/Source/JavaScriptCore/jit \
58         -I$(srcdir)/Source/JavaScriptCore/parser \
59         -I$(srcdir)/Source/JavaScriptCore/profiler \
60         -I$(srcdir)/Source/JavaScriptCore/runtime \
61         -I$(srcdir)/Source/JavaScriptCore/wtf \
62         -I$(srcdir)/Source/JavaScriptCore/wtf \
63         -I$(srcdir)/Source/JavaScriptCore/wtf/gobject \
64         -I$(srcdir)/Source/JavaScriptCore/wtf/gtk \
65         -I$(srcdir)/Source/JavaScriptCore/wtf/text \
66         -I$(srcdir)/Source/JavaScriptCore/wtf/unicode \
67         -I$(srcdir)/Source/JavaScriptCore/yarr \
68         -I$(top_builddir)/Source/JavaScriptCore \
69         -I$(top_builddir)/Source/JavaScriptCore/parser \
70         -I$(top_builddir)/Source/JavaScriptCore/runtime
71
72 javascriptcore_cflags += \
73         $(global_cflags) \
74         $(GLIB_CFLAGS) \
75         $(UNICODE_CFLAGS)
76
77 pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
78
79 Source/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
80         $(AM_V_GEN)$(PERL) $^ > $@
81
82 Source/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/%.cpp
83         $(AM_V_GEN)$(PERL) $^ -i > $@
84
85 Source/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
86         $(AM_V_GEN)$(PYTHON) $^ > $@
87
88 Source/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
89         $(AM_V_GEN)$(PYTHON) $^ > $@
90
91 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
92
93 bin_PROGRAMS += \
94         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
95
96 noinst_PROGRAMS += \
97         Programs/jsc \
98         Programs/minidom
99
100 Programs_minidom_CPPFLAGS = \
101         $(global_cppflags) \
102         $(javascriptcore_cppflags)
103
104 Programs_minidom_CFLAGS = \
105         -ansi \
106         -fno-strict-aliasing \
107         $(global_cflags) \
108         $(GLOBALDEPS_CFLAGS)
109
110 Programs_minidom_LDADD = \
111         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
112         $(WINMM_LIBS) \
113         -lm \
114         -lpthread \
115         -lstdc++
116
117 Programs_minidom_LDFLAGS = \
118         -no-install \
119         -no-fast-install
120
121 # jsc
122 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
123         $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
124 Programs_jsc_LDADD =
125 Programs_jsc_SOURCES =
126
127 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
128         $(global_cppflags) \
129         $(javascriptcore_cppflags)
130
131 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
132         -fno-strict-aliasing \
133         $(global_cxxflags) \
134         $(global_cflags) \
135         $(GLOBALDEPS_CFLAGS) \
136         $(UNICODE_CFLAGS)
137
138 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
139         -lpthread \
140         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
141         $(WINMM_LIBS)
142
143 EXTRA_DIST += \
144         Source/JavaScriptCore/AUTHORS \
145         Source/JavaScriptCore/ChangeLog \
146         Source/JavaScriptCore/COPYING.LIB \
147         Source/JavaScriptCore/create_hash_table \
148         Source/JavaScriptCore/create_regex_tables \
149         Source/JavaScriptCore/icu/LICENSE \
150         Source/JavaScriptCore/icu/README \
151         Source/JavaScriptCore/KeywordLookupGenerator.py \
152         Source/JavaScriptCore/parser/Keywords.table \
153         Source/JavaScriptCore/THANKS
154
155 # Clean rules for JavaScriptCore
156 # FIXME: Should this list be generated from javascriptcore_built_nosources?
157 CLEANFILES += \
158         Source/JavaScriptCore/Lexer.lut.h \
159         Source/JavaScriptCore/RegExpJitTables.h \
160         Source/JavaScriptCore/runtime/ArrayConstructor.lut.h \
161         Source/JavaScriptCore/runtime/ArrayPrototype.lut.h \
162         Source/JavaScriptCore/runtime/BooleanPrototype.lut.h \
163         Source/JavaScriptCore/runtime/DateConstructor.lut.h \
164         Source/JavaScriptCore/runtime/DatePrototype.lut.h \
165         Source/JavaScriptCore/runtime/ErrorPrototype.lut.h \
166         Source/JavaScriptCore/runtime/JSGlobalObject.lut.h \
167         Source/JavaScriptCore/runtime/JSONObject.lut.h \
168         Source/JavaScriptCore/runtime/MathObject.lut.h \
169         Source/JavaScriptCore/runtime/NumberConstructor.lut.h \
170         Source/JavaScriptCore/runtime/NumberPrototype.lut.h \
171         Source/JavaScriptCore/runtime/ObjectConstructor.lut.h \
172         Source/JavaScriptCore/runtime/ObjectPrototype.lut.h \
173         Source/JavaScriptCore/runtime/RegExpConstructor.lut.h \
174         Source/JavaScriptCore/runtime/RegExpObject.lut.h \
175         Source/JavaScriptCore/runtime/RegExpPrototype.lut.h \
176         Source/JavaScriptCore/runtime/StringConstructor.lut.h \
177         Source/JavaScriptCore/runtime/StringPrototype.lut.h \
178         Programs/jsc \
179         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
180         Programs/minidom
181
182 DISTCLEANFILES += \
183         $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc