]> git.saurik.com Git - apple/javascriptcore.git/blame - GNUmakefile.am
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / GNUmakefile.am
CommitLineData
14957cd0 1include $(srcdir)/Source/JavaScriptCore/GNUmakefile.list.am
ba379fdc 2
14957cd0
A
3lib_LTLIBRARIES += \
4 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
ba379fdc 5
14957cd0
A
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.
9libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LDFLAGS = \
10 -version-info @LIBWEBKITGTK_VERSION@ \
11 $(no_undefined)
ba379fdc 12
14957cd0
A
13nodist_EXTRA_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
14 $(javascriptcore_built_nosources)
ba379fdc 15
14957cd0
A
16nodist_libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
17 $(javascriptcore_built_sources)
b37bf2e1 18
14957cd0
A
19libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_ladir = $(prefix)/include/webkit-@WEBKITGTK_API_VERSION@/JavaScriptCore
20libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_HEADERS = $(javascriptcore_h_api)
b37bf2e1 21
14957cd0
A
22libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_SOURCES = \
23 $(javascriptcore_sources)
b37bf2e1 24
14957cd0
A
25libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_LIBADD = \
26 $(UNICODE_LIBS) \
27 $(GLIB_LIBS) \
28 $(WINMM_LIBS) \
29 -lpthread
b37bf2e1 30
14957cd0
A
31libjavascriptcoregtk_@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)
b37bf2e1 34
14957cd0
A
35libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CFLAGS = \
36 -fstrict-aliasing \
37 -O3 \
38 $(global_cflags) \
39 $(GLIB_CFLAGS) \
40 $(UNICODE_CFLAGS)
b37bf2e1 41
14957cd0
A
42libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@_la_CPPFLAGS = \
43 $(global_cppflags) \
44 $(javascriptcore_cppflags)
4e4e5a6f 45
14957cd0
A
46javascriptcore_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
73Source/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
74 $(AM_V_GEN)$(PERL) $^ > $@
75
76Source/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/%.cpp
77 $(AM_V_GEN)$(PERL) $^ -i > $@
78
79Source/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
80 $(AM_V_GEN)$(PYTHON) $^ > $@
81
82Source/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
83 $(AM_V_GEN)$(PYTHON) $^ > $@
84
85jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
9dae56ea
A
86
87bin_PROGRAMS += \
14957cd0 88 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
b37bf2e1
A
89
90noinst_PROGRAMS += \
14957cd0 91 Programs/jsc \
9dae56ea 92 Programs/minidom
b37bf2e1 93
9dae56ea
A
94Programs_minidom_CPPFLAGS = \
95 $(global_cppflags) \
96 $(javascriptcore_cppflags)
97
98Programs_minidom_CFLAGS = \
99 -ansi \
100 -fno-strict-aliasing \
9dae56ea
A
101 $(global_cflags) \
102 $(GLOBALDEPS_CFLAGS)
103
104Programs_minidom_LDADD = \
14957cd0
A
105 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
106 $(WINMM_LIBS) \
107 -lm \
108 -lpthread \
109 -lstdc++
9dae56ea 110
ba379fdc
A
111Programs_minidom_LDFLAGS = \
112 -no-install \
113 -no-fast-install
114
9dae56ea 115# jsc
14957cd0
A
116Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
117 $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
118Programs_jsc_LDADD =
119Programs_jsc_SOURCES =
9dae56ea 120
14957cd0 121Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
9dae56ea
A
122 $(global_cppflags) \
123 $(javascriptcore_cppflags)
124
14957cd0 125Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
9dae56ea 126 -fno-strict-aliasing \
9dae56ea
A
127 $(global_cxxflags) \
128 $(global_cflags) \
129 $(GLOBALDEPS_CFLAGS) \
130 $(UNICODE_CFLAGS)
131
14957cd0
A
132Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
133 -lpthread \
134 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
135 $(WINMM_LIBS)
136
137EXTRA_DIST += \
138 Source/JavaScriptCore/AUTHORS \
139 Source/JavaScriptCore/ChangeLog \
140 Source/JavaScriptCore/COPYING.LIB \
141 Source/JavaScriptCore/create_hash_table \
142 Source/JavaScriptCore/create_regex_tables \
143 Source/JavaScriptCore/icu/LICENSE \
144 Source/JavaScriptCore/icu/README \
145 Source/JavaScriptCore/parser/Keywords.table \
146 Source/JavaScriptCore/THANKS
b37bf2e1
A
147
148# Clean rules for JavaScriptCore
14957cd0 149# FIXME: Should this list be generated from javascriptcore_built_nosources?
b37bf2e1 150CLEANFILES += \
14957cd0
A
151 Source/JavaScriptCore/Lexer.lut.h \
152 Source/JavaScriptCore/RegExpJitTables.h \
153 Source/JavaScriptCore/runtime/ArrayConstructor.lut.h \
154 Source/JavaScriptCore/runtime/ArrayPrototype.lut.h \
155 Source/JavaScriptCore/runtime/BooleanPrototype.lut.h \
156 Source/JavaScriptCore/runtime/DateConstructor.lut.h \
157 Source/JavaScriptCore/runtime/DatePrototype.lut.h \
158 Source/JavaScriptCore/runtime/ErrorPrototype.lut.h \
159 Source/JavaScriptCore/runtime/JSGlobalObject.lut.h \
160 Source/JavaScriptCore/runtime/JSONObject.lut.h \
161 Source/JavaScriptCore/runtime/MathObject.lut.h \
162 Source/JavaScriptCore/runtime/NumberConstructor.lut.h \
163 Source/JavaScriptCore/runtime/NumberPrototype.lut.h \
164 Source/JavaScriptCore/runtime/ObjectConstructor.lut.h \
165 Source/JavaScriptCore/runtime/ObjectPrototype.lut.h \
166 Source/JavaScriptCore/runtime/RegExpConstructor.lut.h \
167 Source/JavaScriptCore/runtime/RegExpObject.lut.h \
168 Source/JavaScriptCore/runtime/RegExpPrototype.lut.h \
169 Source/JavaScriptCore/runtime/StringConstructor.lut.h \
170 Source/JavaScriptCore/runtime/StringPrototype.lut.h \
9dae56ea 171 Programs/jsc \
14957cd0 172 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
9dae56ea 173 Programs/minidom