annotate gcc/cp/Make-lang.in @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Top level -*- makefile -*- fragment for GNU C++.
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 # Copyright (C) 1994-2018 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 # Actual names to use when installing a native compiler.
kono
parents:
diff changeset
38 CXX_INSTALL_NAME := $(shell echo c++|sed '$(program_transform_name)')
kono
parents:
diff changeset
39 GXX_INSTALL_NAME := $(shell echo g++|sed '$(program_transform_name)')
kono
parents:
diff changeset
40 CXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo c++|sed '$(program_transform_name)')
kono
parents:
diff changeset
41 GXX_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo g++|sed '$(program_transform_name)')
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
42 CP_PLUGIN_HEADERS := cp-tree.h cxx-pretty-print.h name-lookup.h type-utils.h operators.def
111
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 #
kono
parents:
diff changeset
45 # Define the names for selecting c++ in LANGUAGES.
kono
parents:
diff changeset
46 # Note that it would be nice to move the dependency on g++
kono
parents:
diff changeset
47 # into the C++ rule, but that needs a little bit of work
kono
parents:
diff changeset
48 # to do the right thing within all.cross.
kono
parents:
diff changeset
49 c++: cc1plus$(exeext)
kono
parents:
diff changeset
50
kono
parents:
diff changeset
51 # Tell GNU make to ignore these if they exist.
kono
parents:
diff changeset
52 .PHONY: c++
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 CFLAGS-cp/g++spec.o += $(DRIVER_DEFINES)
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 # Create the compiler driver for g++.
kono
parents:
diff changeset
57 GXX_OBJS = $(GCC_OBJS) cp/g++spec.o
kono
parents:
diff changeset
58 xg++$(exeext): $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a $(LIBDEPS)
kono
parents:
diff changeset
59 +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
kono
parents:
diff changeset
60 $(GXX_OBJS) $(EXTRA_GCC_OBJS) libcommon-target.a \
kono
parents:
diff changeset
61 $(EXTRA_GCC_LIBS) $(LIBS)
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 # Create a version of the g++ driver which calls the cross-compiler.
kono
parents:
diff changeset
64 g++-cross$(exeext): xg++$(exeext)
kono
parents:
diff changeset
65 -rm -f g++-cross$(exeext)
kono
parents:
diff changeset
66 cp xg++$(exeext) g++-cross$(exeext)
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 # The compiler itself.
kono
parents:
diff changeset
69 # Shared with C front end:
kono
parents:
diff changeset
70 CXX_C_OBJS = attribs.o incpath.o \
kono
parents:
diff changeset
71 $(C_COMMON_OBJS) $(CXX_TARGET_OBJS)
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 # Language-specific object files for C++ and Objective C++.
kono
parents:
diff changeset
74 CXX_AND_OBJCXX_OBJS = \
kono
parents:
diff changeset
75 cp/call.o cp/class.o cp/constexpr.o cp/constraint.o \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
76 cp/cp-gimplify.o \
111
kono
parents:
diff changeset
77 cp/cp-objcp-common.o cp/cp-ubsan.o \
kono
parents:
diff changeset
78 cp/cvt.o cp/cxx-pretty-print.o \
kono
parents:
diff changeset
79 cp/decl.o cp/decl2.o cp/dump.o \
kono
parents:
diff changeset
80 cp/error.o cp/except.o cp/expr.o \
kono
parents:
diff changeset
81 cp/friend.o cp/init.o \
kono
parents:
diff changeset
82 cp/lambda.o cp/lex.o cp/logic.o \
kono
parents:
diff changeset
83 cp/mangle.o cp/method.o \
kono
parents:
diff changeset
84 cp/name-lookup.o cp/optimize.o \
kono
parents:
diff changeset
85 cp/parser.o cp/pt.o cp/ptree.o \
kono
parents:
diff changeset
86 cp/repo.o cp/rtti.o \
kono
parents:
diff changeset
87 cp/search.o cp/semantics.o \
kono
parents:
diff changeset
88 cp/tree.o cp/typeck.o cp/typeck2.o \
kono
parents:
diff changeset
89 cp/vtable-class-hierarchy.o $(CXX_C_OBJS)
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 ifeq ($(if $(wildcard ../stage_current),$(shell cat \
kono
parents:
diff changeset
92 ../stage_current)),stageautofeedback)
kono
parents:
diff changeset
93 $(CXX_AND_OBJCXX_OBJS): CFLAGS += -fauto-profile=cc1plus.fda
kono
parents:
diff changeset
94 $(CXX_AND_OBJCXX_OBJS): cc1plus.fda
kono
parents:
diff changeset
95 endif
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 # Language-specific object files for C++.
kono
parents:
diff changeset
98 CXX_OBJS = cp/cp-lang.o c-family/stub-objc.o $(CXX_AND_OBJCXX_OBJS)
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 c++_OBJS = $(CXX_OBJS) cc1plus-checksum.o cp/g++spec.o
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 # Use strict warnings for this front end.
kono
parents:
diff changeset
103 cp-warn = $(STRICT_WARN)
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 # compute checksum over all object files and the options
kono
parents:
diff changeset
106 # re-use the checksum from the prev-final stage so it passes
kono
parents:
diff changeset
107 # the bootstrap comparison and allows comparing of the cc1 binary
kono
parents:
diff changeset
108 cc1plus-checksum.c : build/genchecksum$(build_exeext) checksum-options \
kono
parents:
diff changeset
109 $(CXX_OBJS) $(BACKEND) $(LIBDEPS)
kono
parents:
diff changeset
110 if [ -f ../stage_final ] \
kono
parents:
diff changeset
111 && cmp -s ../stage_current ../stage_final; then \
kono
parents:
diff changeset
112 cp ../prev-gcc/cc1plus-checksum.c cc1plus-checksum.c; \
kono
parents:
diff changeset
113 else \
kono
parents:
diff changeset
114 build/genchecksum$(build_exeext) $(CXX_OBJS) $(BACKEND) $(LIBDEPS) \
kono
parents:
diff changeset
115 checksum-options > cc1plus-checksum.c.tmp && \
kono
parents:
diff changeset
116 $(srcdir)/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c; \
kono
parents:
diff changeset
117 fi
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 cc1plus$(exeext): $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBDEPS)
kono
parents:
diff changeset
120 +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
kono
parents:
diff changeset
121 $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
kono
parents:
diff changeset
122
kono
parents:
diff changeset
123 ifeq ($(ENABLE_MAINTAINER_RULES), true)
kono
parents:
diff changeset
124 # Special build rule. This is a maintainer rule, that is only
kono
parents:
diff changeset
125 # available when GCC is configured with --enable-maintainer-mode. In
kono
parents:
diff changeset
126 # other cases, it is not available to avoid triggering rebuilds if a
kono
parents:
diff changeset
127 # user has the source checked out with unusual timestamps.
kono
parents:
diff changeset
128 $(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf
kono
parents:
diff changeset
129 else
kono
parents:
diff changeset
130 # We keep the rule so that you can still force a rebuild, even if you
kono
parents:
diff changeset
131 # didn't configure GCC with --enable-maintainer-mode, by manually
kono
parents:
diff changeset
132 # deleting the $(srcdir)/cp/cfns.h file.
kono
parents:
diff changeset
133 $(srcdir)/cp/cfns.h:
kono
parents:
diff changeset
134 endif
kono
parents:
diff changeset
135 gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
kono
parents:
diff changeset
136 $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
kono
parents:
diff changeset
137
kono
parents:
diff changeset
138 cc1plus.fda: ../stage1-gcc/cc1plus$(exeext) ../prev-gcc/$(PERF_DATA)
kono
parents:
diff changeset
139 $(CREATE_GCOV) -binary ../stage1-gcc/cc1plus$(exeext) -gcov cc1plus.fda -profile ../prev-gcc/$(PERF_DATA) -gcov_version 1
kono
parents:
diff changeset
140
kono
parents:
diff changeset
141 #
kono
parents:
diff changeset
142 # Build hooks:
kono
parents:
diff changeset
143
kono
parents:
diff changeset
144 c++.all.cross: g++-cross$(exeext)
kono
parents:
diff changeset
145 c++.start.encap: xg++$(exeext)
kono
parents:
diff changeset
146 c++.rest.encap:
kono
parents:
diff changeset
147 c++.info:
kono
parents:
diff changeset
148 c++.install-info:
kono
parents:
diff changeset
149 c++.dvi:
kono
parents:
diff changeset
150 c++.pdf:
kono
parents:
diff changeset
151 c++.install-pdf:
kono
parents:
diff changeset
152 c++.install-html:
kono
parents:
diff changeset
153 c++.html:
kono
parents:
diff changeset
154 c++.srcinfo:
kono
parents:
diff changeset
155 c++.srcextra:
kono
parents:
diff changeset
156
kono
parents:
diff changeset
157 c++.tags: force
kono
parents:
diff changeset
158 cd $(srcdir)/cp; etags -o TAGS.sub *.c *.cc *.h --language=none \
kono
parents:
diff changeset
159 --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' cp-tree.def; \
kono
parents:
diff changeset
160 etags --include TAGS.sub --include ../TAGS.sub
kono
parents:
diff changeset
161
kono
parents:
diff changeset
162 c++.man: doc/g++.1
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 c++.srcman: doc/g++.1
kono
parents:
diff changeset
165 -cp -p $^ $(srcdir)/doc
kono
parents:
diff changeset
166
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
167 # C++ selftests
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
168
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
169 # If C++ is enabled, require the selftests to be run for it
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
170 # at each stage of the build:
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
171 selftest-c++: s-selftest-c++
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
172
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
173 CPP_SELFTEST_DEPS = cc1plus$(exeext) $(SELFTEST_DEPS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
174 CPP_SELFTEST_FLAGS = -xc++ $(SELFTEST_FLAGS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
175
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
176 # Run the C++ selftests
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
177 s-selftest-c++: $(CPP_SELFTEST_DEPS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
178 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
179 $(STAMP) $@
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
180
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
181 # Convenience method for running C++ selftests under gdb:
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
182 .PHONY: selftest-c++-gdb
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
183 selftest-c++-gdb: $(CPP_SELFTEST_DEPS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
184 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
185 -wrapper gdb,--args
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
186
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
187 # Convenience method for running C++ selftests under valgrind:
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
188 .PHONY: selftest-c++-valgrind
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
189 selftest-c++-valgrind: $(CPP_SELFTEST_DEPS)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
190 $(GCC_FOR_TARGET) $(CPP_SELFTEST_FLAGS) \
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
191 -wrapper valgrind,--leak-check=full
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
192
111
kono
parents:
diff changeset
193 # 'make check' in gcc/ looks for check-c++, as do all toplevel C++-related
kono
parents:
diff changeset
194 # check targets. However, our DejaGNU framework requires 'check-g++' as its
kono
parents:
diff changeset
195 # entry point. We feed the former to the latter here.
kono
parents:
diff changeset
196 check-c++ : check-g++
kono
parents:
diff changeset
197
kono
parents:
diff changeset
198 # Run the testsuite in C++17 mode.
kono
parents:
diff changeset
199 check-c++1z: check-c++17
kono
parents:
diff changeset
200 check-c++17:
kono
parents:
diff changeset
201 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS)" GXX_TESTSUITE_STDS=17 check-g++
kono
parents:
diff changeset
202
kono
parents:
diff changeset
203 # Run the testsuite in all standard conformance levels.
kono
parents:
diff changeset
204 check-c++-all:
kono
parents:
diff changeset
205 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) --stds=98,11,14,17,2a,concepts" check-g++
kono
parents:
diff changeset
206
kono
parents:
diff changeset
207 # Run the testsuite with garbage collection at every opportunity.
kono
parents:
diff changeset
208 check-g++-strict-gc:
kono
parents:
diff changeset
209 $(MAKE) RUNTESTFLAGS="$(RUNTESTFLAGS) --extra_opts,--param,ggc-min-heapsize=0,--param,ggc-min-expand=0" \
kono
parents:
diff changeset
210 TESTSUITEDIR="$(TESTSUITEDIR).gc" check-g++
kono
parents:
diff changeset
211 check-c++-subtargets : check-g++-subtargets
kono
parents:
diff changeset
212 # List of targets that can use the generic check- rule and its // variant.
kono
parents:
diff changeset
213 lang_checks += check-g++
kono
parents:
diff changeset
214 lang_checks_parallelized += check-g++
kono
parents:
diff changeset
215 # For description see the check_$lang_parallelize comment in gcc/Makefile.in.
kono
parents:
diff changeset
216 check_g++_parallelize = 10000
kono
parents:
diff changeset
217 #
kono
parents:
diff changeset
218 # Install hooks:
kono
parents:
diff changeset
219 # cc1plus is installed elsewhere as part of $(COMPILERS).
kono
parents:
diff changeset
220
kono
parents:
diff changeset
221 # Install the driver program as $(target)-g++ and $(target)-c++, and
kono
parents:
diff changeset
222 # also as g++ and c++ if native.
kono
parents:
diff changeset
223 c++.install-common: installdirs
kono
parents:
diff changeset
224 -if test "$(enable_as_accelerator)" != "yes" ; then \
kono
parents:
diff changeset
225 rm -f $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
226 $(INSTALL_PROGRAM) xg++$(exeext) $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
227 chmod a+x $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
228 rm -f $(DESTDIR)$(bindir)/$(CXX_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
229 ( cd $(DESTDIR)$(bindir) && \
kono
parents:
diff changeset
230 $(LN) $(GXX_INSTALL_NAME)$(exeext) $(CXX_INSTALL_NAME)$(exeext) ); \
kono
parents:
diff changeset
231 if [ -f cc1plus$(exeext) ] ; then \
kono
parents:
diff changeset
232 if [ ! -f g++-cross$(exeext) ] ; then \
kono
parents:
diff changeset
233 rm -f $(DESTDIR)$(bindir)/$(GXX_TARGET_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
234 ( cd $(DESTDIR)$(bindir) && \
kono
parents:
diff changeset
235 $(LN) $(GXX_INSTALL_NAME)$(exeext) $(GXX_TARGET_INSTALL_NAME)$(exeext) ); \
kono
parents:
diff changeset
236 rm -f $(DESTDIR)$(bindir)/$(CXX_TARGET_INSTALL_NAME)$(exeext); \
kono
parents:
diff changeset
237 ( cd $(DESTDIR)$(bindir) && \
kono
parents:
diff changeset
238 $(LN) $(CXX_INSTALL_NAME)$(exeext) $(CXX_TARGET_INSTALL_NAME)$(exeext) ); \
kono
parents:
diff changeset
239 fi ; \
kono
parents:
diff changeset
240 fi; \
kono
parents:
diff changeset
241 fi
kono
parents:
diff changeset
242
kono
parents:
diff changeset
243 # We can't use links because not everyone supports them. So just copy the
kono
parents:
diff changeset
244 # manpage.
kono
parents:
diff changeset
245 doc/g++.1: doc/gcc.1
kono
parents:
diff changeset
246 cp $< doc/g++.1
kono
parents:
diff changeset
247
kono
parents:
diff changeset
248 c++.install-man: $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext)
kono
parents:
diff changeset
249
kono
parents:
diff changeset
250 $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext): doc/g++.1 installdirs
kono
parents:
diff changeset
251 -rm -f $@
kono
parents:
diff changeset
252 -$(INSTALL_DATA) $< $@
kono
parents:
diff changeset
253 -chmod a-x $@
kono
parents:
diff changeset
254
kono
parents:
diff changeset
255 c++.install-plugin: installdirs
kono
parents:
diff changeset
256 # We keep the directory structure for files in config and .def files. All
kono
parents:
diff changeset
257 # other files are flattened to a single directory.
kono
parents:
diff changeset
258 headers="$(CP_PLUGIN_HEADERS)"; \
kono
parents:
diff changeset
259 for file in $$headers; do \
kono
parents:
diff changeset
260 path=$(srcdir)/cp/$$file; \
kono
parents:
diff changeset
261 dest=$(plugin_includedir)/cp/$$file; \
kono
parents:
diff changeset
262 echo $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
kono
parents:
diff changeset
263 dir=`dirname $$dest`; \
kono
parents:
diff changeset
264 $(mkinstalldirs) $(DESTDIR)$$dir; \
kono
parents:
diff changeset
265 $(INSTALL_DATA) $$path $(DESTDIR)$$dest; \
kono
parents:
diff changeset
266 done
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
267 # Install import library.
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
268 ifeq ($(plugin_implib),yes)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
269 $(mkinstalldirs) $(DESTDIR)$(plugin_resourcesdir)
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
270 $(INSTALL_DATA) cc1plus$(exeext).a $(DESTDIR)/$(plugin_resourcesdir)/cc1plus$(exeext).a
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
271 endif
111
kono
parents:
diff changeset
272
kono
parents:
diff changeset
273 c++.uninstall:
kono
parents:
diff changeset
274 -rm -rf $(DESTDIR)$(bindir)/$(CXX_INSTALL_NAME)$(exeext)
kono
parents:
diff changeset
275 -rm -rf $(DESTDIR)$(bindir)/$(GXX_INSTALL_NAME)$(exeext)
kono
parents:
diff changeset
276 -rm -rf $(DESTDIR)$(man1dir)/$(GXX_INSTALL_NAME)$(man1ext)
kono
parents:
diff changeset
277 #
kono
parents:
diff changeset
278 # Clean hooks:
kono
parents:
diff changeset
279 # A lot of the ancillary files are deleted by the main makefile.
kono
parents:
diff changeset
280 # We just have to delete files specific to us.
kono
parents:
diff changeset
281
kono
parents:
diff changeset
282 c++.mostlyclean:
kono
parents:
diff changeset
283 -rm -f doc/g++.1
kono
parents:
diff changeset
284 -rm -f cp/*$(objext)
kono
parents:
diff changeset
285 -rm -f cp/*$(coverageexts)
kono
parents:
diff changeset
286 -rm -f xg++$(exeext) g++-cross$(exeext) cc1plus$(exeext) cc1plus.fda
kono
parents:
diff changeset
287 c++.clean:
kono
parents:
diff changeset
288 c++.distclean:
kono
parents:
diff changeset
289 -rm -f cp/config.status cp/Makefile
kono
parents:
diff changeset
290 -rm -f cxxmain.c
kono
parents:
diff changeset
291 c++.maintainer-clean:
kono
parents:
diff changeset
292 #
kono
parents:
diff changeset
293 # Stage hooks:
kono
parents:
diff changeset
294 # The main makefile has already created stage?/cp.
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 c++.stage1: stage1-start
kono
parents:
diff changeset
297 -mv cp/*$(objext) stage1/cp
kono
parents:
diff changeset
298 c++.stage2: stage2-start
kono
parents:
diff changeset
299 -mv cp/*$(objext) stage2/cp
kono
parents:
diff changeset
300 c++.stage3: stage3-start
kono
parents:
diff changeset
301 -mv cp/*$(objext) stage3/cp
kono
parents:
diff changeset
302 c++.stage4: stage4-start
kono
parents:
diff changeset
303 -mv cp/*$(objext) stage4/cp
kono
parents:
diff changeset
304 c++.stageprofile: stageprofile-start
kono
parents:
diff changeset
305 -mv cp/*$(objext) stageprofile/cp
kono
parents:
diff changeset
306 c++.stagefeedback: stagefeedback-start
kono
parents:
diff changeset
307 -mv cp/*$(objext) stagefeedback/cp
kono
parents:
diff changeset
308 c++.autostageprofile: stageprofile-start
kono
parents:
diff changeset
309 -mv cp/*$(objext) autostageprofile/cp
kono
parents:
diff changeset
310 c++.autostagefeedback: stagefeedback-start
kono
parents:
diff changeset
311 -mv cp/*$(objext) autostagefeedback/cp