]> git.saurik.com Git - apple/javascriptcore.git/blob - GNUmakefile.am
JavaScriptCore-1097.3.3.tar.gz
[apple/javascriptcore.git] / 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/yarr \
66 -I$(top_builddir)/DerivedSources/JavaScriptCore
67
68 javascriptcore_cppflags += \
69 -I$(srcdir)/Source/WTF
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 $(shell mkdir -p DerivedSources/JavaScriptCore)
79
80 DerivedSources/JavaScriptCore/Lexer.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
81 $(AM_V_GEN)$(PERL) $^ > $@
82
83 DerivedSources/JavaScriptCore/%.lut.h: $(srcdir)/Source/JavaScriptCore/create_hash_table $(srcdir)/Source/JavaScriptCore/runtime/%.cpp
84 $(AM_V_GEN)$(PERL) $^ -i > $@
85
86 DerivedSources/JavaScriptCore/RegExpJitTables.h: $(srcdir)/Source/JavaScriptCore/create_regex_tables
87 $(AM_V_GEN)$(PYTHON) $^ > $@
88
89 DerivedSources/JavaScriptCore/KeywordLookup.h: $(srcdir)/Source/JavaScriptCore/KeywordLookupGenerator.py $(srcdir)/Source/JavaScriptCore/parser/Keywords.table
90 $(AM_V_GEN)$(PYTHON) $^ > $@
91
92 jsc: $(javascriptcore_built_nosources) Programs/jsc$(EXEEXT)
93
94 bin_PROGRAMS += \
95 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
96
97 noinst_PROGRAMS += \
98 Programs/jsc \
99 Programs/minidom
100
101 Programs_minidom_CPPFLAGS = \
102 $(global_cppflags) \
103 $(javascriptcore_cppflags)
104
105 Programs_minidom_CFLAGS = \
106 -ansi \
107 -fno-strict-aliasing \
108 $(global_cflags) \
109 $(GLOBALDEPS_CFLAGS)
110
111 Programs_minidom_LDADD = \
112 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
113 $(WINMM_LIBS) \
114 -lm \
115 -lpthread \
116 -lstdc++
117
118 Programs_minidom_LDFLAGS = \
119 -no-install \
120 -no-fast-install
121
122 # jsc
123 Programs/jsc$(EXEEXT): Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT)
124 $(AM_V_GEN)cp -f Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@$(EXEEXT) Programs/jsc$(EXEEXT)
125 Programs_jsc_LDADD =
126 Programs_jsc_SOURCES =
127
128 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CPPFLAGS = \
129 $(global_cppflags) \
130 $(javascriptcore_cppflags)
131
132 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_CXXFLAGS = \
133 -fno-strict-aliasing \
134 $(global_cxxflags) \
135 $(global_cflags) \
136 $(GLOBALDEPS_CFLAGS) \
137 $(UNICODE_CFLAGS)
138
139 Programs_jsc_@WEBKITGTK_API_MAJOR_VERSION@_LDADD = \
140 -lpthread \
141 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \
142 $(WINMM_LIBS)
143
144 EXTRA_DIST += \
145 Source/JavaScriptCore/AUTHORS \
146 Source/JavaScriptCore/ChangeLog \
147 Source/JavaScriptCore/COPYING.LIB \
148 Source/JavaScriptCore/create_hash_table \
149 Source/JavaScriptCore/create_regex_tables \
150 Source/JavaScriptCore/icu/LICENSE \
151 Source/JavaScriptCore/icu/README \
152 Source/JavaScriptCore/KeywordLookupGenerator.py \
153 Source/JavaScriptCore/parser/Keywords.table \
154 Source/JavaScriptCore/THANKS
155
156 CLEANFILES += \
157 $(javascriptcore_built_nosources) \
158 Programs/jsc \
159 Programs/jsc-@WEBKITGTK_API_MAJOR_VERSION@ \
160 Programs/minidom
161
162 DISTCLEANFILES += \
163 $(top_builddir)/Source/JavaScriptCore/javascriptcoregtk-@WEBKITGTK_API_VERSION@.pc