8d6d252d4c6c10c159d8c7a989d66cc8b7b42377
[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         -lpthread \
27         libWTF.la \
28         $(UNICODE_LIBS) \
29         $(GLIB_LIBS) \
30         $(WINMM_LIBS)
31
32 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CXXFLAGS = \
33         $(global_cxxflags) \
34         $(libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS)
35
36 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
37         -fstrict-aliasing \
38         -O3 \
39         $(javascriptcore_cflags)
40
41 libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
42         $(global_cppflags) \
43         $(javascriptcore_cppflags)
44
45 javascriptcore_cppflags += \
46         $(JSC_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/dfg \
54         -I$(srcdir)/Source/JavaScriptCore/heap \
55         -I$(srcdir)/Source/JavaScriptCore/debugger \
56         -I$(srcdir)/Source/JavaScriptCore/ForwardingHeaders \
57         -I$(srcdir)/Source/JavaScriptCore/interpreter \
58         -I$(srcdir)/Source/JavaScriptCore/jit \
59         -I$(srcdir)/Source/JavaScriptCore/jit \
60         -I$(srcdir)/Source/JavaScriptCore/llint \
61         -I$(srcdir)/Source/JavaScriptCore/parser \
62         -I$(srcdir)/Source/JavaScriptCore/profiler \
63         -I$(srcdir)/Source/JavaScriptCore/runtime \
64         -I$(srcdir)/Source/JavaScriptCore/tools \
65         -I$(srcdir)/Source/JavaScriptCore/wtf \
66         -I$(srcdir)/Source/JavaScriptCore/wtf \
67         -I$(srcdir)/Source/JavaScriptCore/wtf/gobject \
68         -I$(srcdir)/Source/JavaScriptCore/wtf/gtk \
69         -I$(srcdir)/Source/JavaScriptCore/wtf/text \
70         -I$(srcdir)/Source/JavaScriptCore/wtf/unicode \
71         -I$(srcdir)/Source/JavaScriptCore/yarr \
72         -I$(top_builddir)/DerivedSources/JavaScriptCore
73
74 javascriptcore_cppflags += \
75         -I$(srcdir)/Source/WTF
76
77 javascriptcore_cflags += \
78         $(global_cflags) \
79         $(GLIB_CFLAGS) \
80         $(UNICODE_CFLAGS)
81
82 pkgconfig_DATA += Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc
83
84 $(shell mkdir -p DerivedSources/JavaScriptCore)
85
86 DerivedSources/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
87         $(AM_V_GEN)$(PERL) $^ > $@
88
89 DerivedSources/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/runtime/%.cpp
90         $(AM_V_GEN)$(PERL) $^ -i > $@
91
92 DerivedSources/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
93         $(AM_V_GEN)$(PYTHON) $^ > $@
94
95 DerivedSources/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
96         $(AM_V_GEN)$(PYTHON) $^ > $@
97
98 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
99
100 bin_PROGRAMS += \
101         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
102
103 noinst_PROGRAMS += \
104         Programs/jsc \
105         Programs/minidom
106
107 Programs_minidom_CPPFLAGS = \
108         $(global_cppflags) \
109         $(javascriptcore_cppflags)
110
111 Programs_minidom_CFLAGS = \
112         -ansi \
113         -fno-strict-aliasing \
114         $(global_cflags) \
115         $(GLOBALDEPS_CFLAGS)
116
117 Programs_minidom_LDADD = \
118         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
119         $(WINMM_LIBS) \
120         -lm \
121         -lpthread \
122         -lstdc++
123
124 Programs_minidom_LDFLAGS = \
125         -no-install \
126         -no-fast-install
127
128 # jsc
129 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
130         $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
131 Programs_jsc_LDADD =
132 Programs_jsc_SOURCES =
133
134 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
135         $(global_cppflags) \
136         $(javascriptcore_cppflags)
137
138 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
139         -fno-strict-aliasing \
140         $(global_cxxflags) \
141         $(global_cflags) \
142         $(GLOBALDEPS_CFLAGS) \
143         $(UNICODE_CFLAGS)
144
145 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
146         -lpthread \
147         libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
148         $(WINMM_LIBS)
149
150 EXTRA_DIST += \
151         Source/JavaScriptCore/AUTHORS \
152         Source/JavaScriptCore/ChangeLog \
153         Source/JavaScriptCore/COPYING.LIB \
154         Source/JavaScriptCore/create_hash_table \
155         Source/JavaScriptCore/create_regex_tables \
156         Source/JavaScriptCore/icu/LICENSE \
157         Source/JavaScriptCore/icu/README \
158         Source/JavaScriptCore/KeywordLookupGenerator.py \
159         Source/JavaScriptCore/parser/Keywords.table \
160         Source/JavaScriptCore/THANKS
161
162 CLEANFILES += \
163         $(javascriptcore_built_nosources) \
164         Programs/jsc \
165         Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
166         Programs/minidom
167
168 DISTCLEANFILES += \
169         $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc