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