annotate gcc/jit/Make-lang.in @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Top level -*- makefile -*- fragment for libgccjit.so.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 # Copyright (C) 2013-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 #GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 #it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 #the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 #any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 #GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 #but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
14 #GNU General Public License for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 # You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 # along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 # <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 # This file provides the language dependent support in the main Makefile.
kono
parents:
diff changeset
21 # Each language makefile fragment must provide the following targets:
kono
parents:
diff changeset
22 #
kono
parents:
diff changeset
23 # foo.all.cross, foo.start.encap, foo.rest.encap,
kono
parents:
diff changeset
24 # foo.install-common, foo.install-man, foo.install-info, foo.install-pdf,
kono
parents:
diff changeset
25 # foo.install-html, foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall,
kono
parents:
diff changeset
26 # foo.mostlyclean, foo.clean, foo.distclean,
kono
parents:
diff changeset
27 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
kono
parents:
diff changeset
28 #
kono
parents:
diff changeset
29 # where `foo' is the name of the language.
kono
parents:
diff changeset
30 #
kono
parents:
diff changeset
31 # It should also provide rules for:
kono
parents:
diff changeset
32 #
kono
parents:
diff changeset
33 # - making any compiler driver (eg: g++)
kono
parents:
diff changeset
34 # - the compiler proper (eg: cc1plus)
kono
parents:
diff changeset
35 # - define the names for selecting the language in LANGUAGES.
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 #
kono
parents:
diff changeset
38 # Define the names for selecting jit in LANGUAGES.
kono
parents:
diff changeset
39 # Note that it would be nice to move the dependency on g++
kono
parents:
diff changeset
40 # into the jit rule, but that needs a little bit of work
kono
parents:
diff changeset
41 # to do the right thing within all.cross.
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 LIBGCCJIT_LINKER_NAME = libgccjit.so
kono
parents:
diff changeset
44 LIBGCCJIT_VERSION_NUM = 0
kono
parents:
diff changeset
45 LIBGCCJIT_MINOR_NUM = 0
kono
parents:
diff changeset
46 LIBGCCJIT_RELEASE_NUM = 1
kono
parents:
diff changeset
47 LIBGCCJIT_SONAME = $(LIBGCCJIT_LINKER_NAME).$(LIBGCCJIT_VERSION_NUM)
kono
parents:
diff changeset
48 LIBGCCJIT_FILENAME = \
kono
parents:
diff changeset
49 $(LIBGCCJIT_SONAME).$(LIBGCCJIT_MINOR_NUM).$(LIBGCCJIT_RELEASE_NUM)
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 LIBGCCJIT_LINKER_NAME_SYMLINK = $(LIBGCCJIT_LINKER_NAME)
kono
parents:
diff changeset
52 LIBGCCJIT_SONAME_SYMLINK = $(LIBGCCJIT_SONAME)
kono
parents:
diff changeset
53
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
54 # Conditionalize the use of the LD_VERSION_SCRIPT_OPTION and
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
55 # LD_SONAME_OPTION depending if configure found them, using $(if)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
56 # We have to define a COMMA here, otherwise the commas in the "true"
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
57 # result are treated as separators by the $(if).
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
58 COMMA := ,
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
59 LIBGCCJIT_VERSION_SCRIPT_OPTION = \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
60 $(if $(LD_VERSION_SCRIPT_OPTION),\
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
61 -Wl$(COMMA)$(LD_VERSION_SCRIPT_OPTION)$(COMMA)$(srcdir)/jit/libgccjit.map)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
62
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
63 LIBGCCJIT_SONAME_OPTION = \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
64 $(if $(LD_SONAME_OPTION), \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
65 -Wl$(COMMA)$(LD_SONAME_OPTION)$(COMMA)$(LIBGCCJIT_SONAME))
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
66
111
kono
parents:
diff changeset
67 jit: $(LIBGCCJIT_FILENAME) \
kono
parents:
diff changeset
68 $(LIBGCCJIT_SYMLINK) \
kono
parents:
diff changeset
69 $(LIBGCCJIT_LINKER_NAME_SYMLINK) \
kono
parents:
diff changeset
70 $(FULL_DRIVER_NAME)
kono
parents:
diff changeset
71
kono
parents:
diff changeset
72 # Tell GNU make to ignore these if they exist.
kono
parents:
diff changeset
73 .PHONY: jit
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 jit_OBJS = attribs.o \
kono
parents:
diff changeset
76 jit/dummy-frontend.o \
kono
parents:
diff changeset
77 jit/libgccjit.o \
kono
parents:
diff changeset
78 jit/jit-logging.o \
kono
parents:
diff changeset
79 jit/jit-recording.o \
kono
parents:
diff changeset
80 jit/jit-playback.o \
kono
parents:
diff changeset
81 jit/jit-result.o \
kono
parents:
diff changeset
82 jit/jit-tempdir.o \
kono
parents:
diff changeset
83 jit/jit-builtins.o \
kono
parents:
diff changeset
84 jit/jit-spec.o \
kono
parents:
diff changeset
85 gcc.o
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 # Use strict warnings for this front end.
kono
parents:
diff changeset
88 jit-warn = $(STRICT_WARN)
kono
parents:
diff changeset
89
kono
parents:
diff changeset
90 # We avoid using $(BACKEND) from Makefile.in in order to avoid pulling
kono
parents:
diff changeset
91 # in main.o
kono
parents:
diff changeset
92 $(LIBGCCJIT_FILENAME): $(jit_OBJS) \
kono
parents:
diff changeset
93 libbackend.a libcommon-target.a libcommon.a \
kono
parents:
diff changeset
94 $(CPPLIB) $(LIBDECNUMBER) \
kono
parents:
diff changeset
95 $(LIBDEPS) $(srcdir)/jit/libgccjit.map \
kono
parents:
diff changeset
96 $(EXTRA_GCC_OBJS)
kono
parents:
diff changeset
97 +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ -shared \
kono
parents:
diff changeset
98 $(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
99 $(CPPLIB) $(LIBDECNUMBER) $(EXTRA_GCC_LIBS) $(LIBS) $(BACKENDLIBS) \
111
kono
parents:
diff changeset
100 $(EXTRA_GCC_OBJS) \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
101 $(LIBGCCJIT_VERSION_SCRIPT_OPTION) \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
102 $(LIBGCCJIT_SONAME_OPTION)
111
kono
parents:
diff changeset
103
kono
parents:
diff changeset
104 $(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME)
kono
parents:
diff changeset
105 ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK)
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 $(LIBGCCJIT_LINKER_NAME_SYMLINK): $(LIBGCCJIT_SONAME_SYMLINK)
kono
parents:
diff changeset
108 ln -sf $(LIBGCCJIT_SONAME_SYMLINK) $(LIBGCCJIT_LINKER_NAME_SYMLINK)
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 #
kono
parents:
diff changeset
111 # Build hooks:
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 jit.all.cross:
kono
parents:
diff changeset
114 jit.start.encap:
kono
parents:
diff changeset
115 jit.rest.encap:
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 # Documentation build hooks.
kono
parents:
diff changeset
118 #
kono
parents:
diff changeset
119 # The documentation can be built using the texinfo toolchain, or
kono
parents:
diff changeset
120 # the sphinx toolchain
kono
parents:
diff changeset
121 #
kono
parents:
diff changeset
122 # The jit documentation is authored using Sphinx, which has numerous
kono
parents:
diff changeset
123 # advantages over Texinfo, including:
kono
parents:
diff changeset
124 #
kono
parents:
diff changeset
125 # * much faster
kono
parents:
diff changeset
126 #
kono
parents:
diff changeset
127 # * use of CSS and JS to provide less of a 1990s feel in the generated
kono
parents:
diff changeset
128 # HTML.
kono
parents:
diff changeset
129 #
kono
parents:
diff changeset
130 # * sane, stable HTML page and anchor names
kono
parents:
diff changeset
131 #
kono
parents:
diff changeset
132 # * sane HTML navigation: ability to move forward and back in the HTML
kono
parents:
diff changeset
133 # at every node to read the HTML like a book
kono
parents:
diff changeset
134 #
kono
parents:
diff changeset
135 # * syntax-coloring of examples
kono
parents:
diff changeset
136 #
kono
parents:
diff changeset
137 # * the ability to "include" fragments of code inline. This is used
kono
parents:
diff changeset
138 # heavily by the jit docs, so that the example code is shared by both
kono
parents:
diff changeset
139 # the test suite and the documentation to ensure that the examples
kono
parents:
diff changeset
140 # appearing in the docs actually compile and work
kono
parents:
diff changeset
141 #
kono
parents:
diff changeset
142 # Sphinx is not a "blessed" dependency, and so a prebuilt libgccjit.texinfo
kono
parents:
diff changeset
143 # file built by Sphinx is checked into the source tree to avoid requiring
kono
parents:
diff changeset
144 # everyone to have Sphinx installed.
kono
parents:
diff changeset
145 #
kono
parents:
diff changeset
146 # This prebuilt libgccjit.texinfo has the "include" fragments "baked in",
kono
parents:
diff changeset
147 # and so contains the content from the sphinx toolchain, but lacks the
kono
parents:
diff changeset
148 # syntax-coloring, and the generated HTML is (IMHO) greatly inferior to
kono
parents:
diff changeset
149 # that generated by Sphinx.
kono
parents:
diff changeset
150
kono
parents:
diff changeset
151 # These targets redirect HTML creation and installation to either
kono
parents:
diff changeset
152 # jit.sphinx.(install-)html or jit.texinfo.(install-)html.
kono
parents:
diff changeset
153 jit.html: jit.$(doc_build_sys).html
kono
parents:
diff changeset
154 jit.install-html: jit.$(doc_build_sys).install-html
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 # For now, use texinfo for pdf, since the sphinx latex toolchain currently
kono
parents:
diff changeset
157 # fails for me deep inside pdflatex (see notes below)
kono
parents:
diff changeset
158 jit.pdf: jit.texinfo.pdf
kono
parents:
diff changeset
159 jit.install-pdf: jit.texinfo.install-pdf
kono
parents:
diff changeset
160
kono
parents:
diff changeset
161 # Hooks for building docs using texinfo
kono
parents:
diff changeset
162 JIT_TEXI_FILES = $(srcdir)/jit/docs/_build/texinfo/libgccjit.texi
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 jit.info: doc/libgccjit.info
kono
parents:
diff changeset
165 doc/libgccjit.info: $(JIT_TEXI_FILES)
kono
parents:
diff changeset
166 if test "x$(BUILD_INFO)" = xinfo; then \
kono
parents:
diff changeset
167 rm -f doc/libgccjit.info*; \
kono
parents:
diff changeset
168 $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
kono
parents:
diff changeset
169 -I $(gcc_docdir)/include -o $@ $<; \
kono
parents:
diff changeset
170 else true; fi
kono
parents:
diff changeset
171
kono
parents:
diff changeset
172 jit.install-info: $(DESTDIR)$(infodir)/libgccjit.info
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 jit.dvi: doc/libgccjit.dvi
kono
parents:
diff changeset
175 doc/libgccjit.dvi: $(JIT_TEXI_FILES)
kono
parents:
diff changeset
176 $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 jit.texinfo.html: $(build_htmldir)/jit/index.html
kono
parents:
diff changeset
179
kono
parents:
diff changeset
180 $(build_htmldir)/jit/index.html: $(srcdir)/jit/docs/_build/texinfo/libgccjit.texi
kono
parents:
diff changeset
181 $(mkinstalldirs) $(@D)
kono
parents:
diff changeset
182 rm -f $(@D)/*
kono
parents:
diff changeset
183 $(TEXI2HTML) -I $(gcc_docdir)/include -I $(srcdir)/jit -o $(@D) $<
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185 jit.texinfo.install-html: jit.texinfo.html
kono
parents:
diff changeset
186 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
187 test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)"
kono
parents:
diff changeset
188 @for p in $(build_htmldir)/jit; do \
kono
parents:
diff changeset
189 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
kono
parents:
diff changeset
190 f=$(html__strip_dir) \
kono
parents:
diff changeset
191 if test -d "$$d$$p"; then \
kono
parents:
diff changeset
192 echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \
kono
parents:
diff changeset
193 $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
kono
parents:
diff changeset
194 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
kono
parents:
diff changeset
195 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
kono
parents:
diff changeset
196 else \
kono
parents:
diff changeset
197 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
kono
parents:
diff changeset
198 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
kono
parents:
diff changeset
199 fi; \
kono
parents:
diff changeset
200 done
kono
parents:
diff changeset
201
kono
parents:
diff changeset
202 jit.texinfo.pdf: doc/libgccjit.pdf
kono
parents:
diff changeset
203
kono
parents:
diff changeset
204 doc/libgccjit.pdf: $(JIT_TEXI_FILES)
kono
parents:
diff changeset
205 $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207 jit.texinfo.install-pdf: doc/libgccjit.pdf
kono
parents:
diff changeset
208 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
209 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
kono
parents:
diff changeset
210 @for p in doc/libgccjit.pdf; do \
kono
parents:
diff changeset
211 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
kono
parents:
diff changeset
212 f=$(pdf__strip_dir) \
kono
parents:
diff changeset
213 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \
kono
parents:
diff changeset
214 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \
kono
parents:
diff changeset
215 done
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 # Hooks for building docs using the Sphinx toolchain:
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 SPHINX_BUILD_DIR=jit/sphinx-build
kono
parents:
diff changeset
220
kono
parents:
diff changeset
221 jit.sphinx.html:
kono
parents:
diff changeset
222 mkdir -p $(SPHINX_BUILD_DIR)
kono
parents:
diff changeset
223 (cd $(srcdir)/jit/docs && \
kono
parents:
diff changeset
224 make html BUILDDIR=$(PWD)/$(SPHINX_BUILD_DIR) )
kono
parents:
diff changeset
225
kono
parents:
diff changeset
226 jit_htmldir=$(htmldir)/jit
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 jit.sphinx.install-html: jit.sphinx.html
kono
parents:
diff changeset
229 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
230 test -z "$(jit_htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(jit_htmldir)"
kono
parents:
diff changeset
231 @for f in $(shell cd $(SPHINX_BUILD_DIR)/html && find) ; do \
kono
parents:
diff changeset
232 if test -f $(SPHINX_BUILD_DIR)/html/"$$f"; then \
kono
parents:
diff changeset
233 $(INSTALL_DATA) $(SPHINX_BUILD_DIR)/html/"$$f" $(DESTDIR)$(jit_htmldir)/"$$f"; \
kono
parents:
diff changeset
234 else \
kono
parents:
diff changeset
235 mkdir $(DESTDIR)$(jit_htmldir)/"$$f"; \
kono
parents:
diff changeset
236 fi; \
kono
parents:
diff changeset
237 done
kono
parents:
diff changeset
238
kono
parents:
diff changeset
239 # (This one is currently failing deep inside pdflatex for me;
kono
parents:
diff changeset
240 # see https://bugzilla.redhat.com/show_bug.cgi?id=1148845 )
kono
parents:
diff changeset
241 jit.sphinx.pdf: $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf
kono
parents:
diff changeset
242 $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf:
kono
parents:
diff changeset
243 mkdir -p $(SPHINX_BUILD_DIR)
kono
parents:
diff changeset
244 (cd $(srcdir)/jit/docs && \
kono
parents:
diff changeset
245 make latexpdf BUILDDIR=$(PWD)/$(SPHINX_BUILD_DIR) )
kono
parents:
diff changeset
246
kono
parents:
diff changeset
247 jit.sphinx.install-pdf: $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf
kono
parents:
diff changeset
248 @$(NORMAL_INSTALL)
kono
parents:
diff changeset
249 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
kono
parents:
diff changeset
250 @for p in $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf; do \
kono
parents:
diff changeset
251 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
kono
parents:
diff changeset
252 f=$(pdf__strip_dir) \
kono
parents:
diff changeset
253 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/gcc/$$f'"; \
kono
parents:
diff changeset
254 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \
kono
parents:
diff changeset
255 done
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 jit.srcinfo:
kono
parents:
diff changeset
258 jit.srcextra:
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 jit.tags:
kono
parents:
diff changeset
261
kono
parents:
diff changeset
262 jit.man:
kono
parents:
diff changeset
263
kono
parents:
diff changeset
264 jit.srcman:
kono
parents:
diff changeset
265
kono
parents:
diff changeset
266 lang_checks += check-jit
kono
parents:
diff changeset
267 lang_checks_parallelized += check-jit
kono
parents:
diff changeset
268 # This number is somewhat arbitrary. Two tests are much slower
kono
parents:
diff changeset
269 # than all the others (test-combination.c and test-threads.c) so
kono
parents:
diff changeset
270 # we want them to be placed in different "buckets".
kono
parents:
diff changeset
271 check_jit_parallelize = 10
kono
parents:
diff changeset
272
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
273 # No jit-specific selftests
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
274 selftest-jit:
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
275
111
kono
parents:
diff changeset
276 #
kono
parents:
diff changeset
277 # Install hooks:
kono
parents:
diff changeset
278 jit.install-common: installdirs
kono
parents:
diff changeset
279 $(INSTALL_PROGRAM) $(LIBGCCJIT_FILENAME) \
kono
parents:
diff changeset
280 $(DESTDIR)/$(libdir)/$(LIBGCCJIT_FILENAME)
kono
parents:
diff changeset
281 ln -sf \
kono
parents:
diff changeset
282 $(LIBGCCJIT_FILENAME) \
kono
parents:
diff changeset
283 $(DESTDIR)/$(libdir)/$(LIBGCCJIT_SONAME_SYMLINK)
kono
parents:
diff changeset
284 ln -sf \
kono
parents:
diff changeset
285 $(LIBGCCJIT_SONAME_SYMLINK)\
kono
parents:
diff changeset
286 $(DESTDIR)/$(libdir)/$(LIBGCCJIT_LINKER_NAME_SYMLINK)
kono
parents:
diff changeset
287 $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \
kono
parents:
diff changeset
288 $(DESTDIR)/$(includedir)/libgccjit.h
kono
parents:
diff changeset
289 $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \
kono
parents:
diff changeset
290 $(DESTDIR)/$(includedir)/libgccjit++.h
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 jit.install-man:
kono
parents:
diff changeset
293
kono
parents:
diff changeset
294 jit.install-plugin:
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 jit.uninstall:
kono
parents:
diff changeset
297
kono
parents:
diff changeset
298 #
kono
parents:
diff changeset
299 # Clean hooks:
kono
parents:
diff changeset
300 # A lot of the ancillary files are deleted by the main makefile.
kono
parents:
diff changeset
301 # We just have to delete files specific to us.
kono
parents:
diff changeset
302
kono
parents:
diff changeset
303 jit.mostlyclean:
kono
parents:
diff changeset
304 -rm -f $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SYMLINK)
kono
parents:
diff changeset
305 -rm -f $(LIBGCCJIT_LINKER_NAME_SYMLINK) $(FULL_DRIVER_NAME)
kono
parents:
diff changeset
306 -rm -f $(LIBGCCJIT_SONAME)
kono
parents:
diff changeset
307 -rm -f $(jit_OBJS)
kono
parents:
diff changeset
308
kono
parents:
diff changeset
309 jit.clean:
kono
parents:
diff changeset
310
kono
parents:
diff changeset
311 jit.distclean:
kono
parents:
diff changeset
312
kono
parents:
diff changeset
313 jit.maintainer-clean:
kono
parents:
diff changeset
314
kono
parents:
diff changeset
315 #
kono
parents:
diff changeset
316 # Stage hooks:
kono
parents:
diff changeset
317 # The main makefile has already created stage?/jit.
kono
parents:
diff changeset
318
kono
parents:
diff changeset
319 jit.stage1: stage1-start
kono
parents:
diff changeset
320 -mv jit/*$(objext) stage1/jit
kono
parents:
diff changeset
321 jit.stage2: stage2-start
kono
parents:
diff changeset
322 -mv jit/*$(objext) stage2/jit
kono
parents:
diff changeset
323 jit.stage3: stage3-start
kono
parents:
diff changeset
324 -mv jit/*$(objext) stage3/jit
kono
parents:
diff changeset
325 jit.stage4: stage4-start
kono
parents:
diff changeset
326 -mv jit/*$(objext) stage4/jit
kono
parents:
diff changeset
327 jit.stageprofile: stageprofile-start
kono
parents:
diff changeset
328 -mv jit/*$(objext) stageprofile/jit
kono
parents:
diff changeset
329 jit.stagefeedback: stagefeedback-start
kono
parents:
diff changeset
330 -mv jit/*$(objext) stagefeedback/jit