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