]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/objcp/Make-lang.in
Make-lang.in (CXX_TREE_H, [...]): Remove.
[thirdparty/gcc.git] / gcc / objcp / Make-lang.in
CommitLineData
b2e61dde 1# Top level -*- makefile -*- fragment for GNU Objective-C++
d1e082c2 2# Copyright (C) 2005-2013 Free Software Foundation, Inc.
b2e61dde
MS
3# Contributed by Ziemowit Laski <zlaski@apple.com>
4
5#This file is part of GCC.
6
7#GCC is free software; you can redistribute it and/or modify
8#it under the terms of the GNU General Public License as published by
af84f9c5 9#the Free Software Foundation; either version 3, or (at your option)
b2e61dde
MS
10#any later version.
11
12#GCC is distributed in the hope that it will be useful,
13#but WITHOUT ANY WARRANTY; without even the implied warranty of
14#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15#GNU General Public License for more details.
16
17#You should have received a copy of the GNU General Public License
af84f9c5
NC
18#along with GCC; see the file COPYING3. If not see
19#<http://www.gnu.org/licenses/>.
20
b2e61dde
MS
21
22# This file provides the language dependent support in the main Makefile.
23# Each language makefile fragment must provide the following targets:
24#
bd97af06 25# foo.all.cross, foo.start.encap, foo.rest.encap,
5fbc6266 26# foo.install-common, foo.install-man, foo.install-info, foo.install-pdf,
55bcd32b 27# foo.install-html, foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall,
b2e61dde
MS
28# foo.mostlyclean, foo.clean, foo.distclean,
29# foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
30#
31# where `foo' is the name of the language.
32#
33# It should also provide rules for:
34#
35# - making any compiler driver (eg: g++)
36# - the compiler proper (eg: cc1plus)
37# - define the names for selecting the language in LANGUAGES.
38
39#\f
40# Define the names for selecting Objective-C++ in LANGUAGES.
9d29a5b7 41obj-c++: cc1objplus$(exeext)
b2e61dde
MS
42
43# Tell GNU make to ignore these if they exist.
9d29a5b7 44.PHONY: obj-c++
b2e61dde
MS
45
46# Use maximal warnings for this front end. Also, make ObjC and C++
47# headers accessible.
48objcp-warn = $(STRICT_WARN) -DOBJCPLUS -I$(srcdir)/objc -I$(srcdir)/cp
49
50# Language-specific object files for Objective C++.
51OBJCXX_OBJS = objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o \
d764a8e6
IS
52 objcp/objc-runtime-shared-support.o \
53 objcp/objc-gnu-runtime-abi-01.o \
54 objcp/objc-next-runtime-abi-01.o \
55 objcp/objc-next-runtime-abi-02.o \
f027ee7c 56 objcp/objc-encoding.o \
3cc2dd4b 57 objcp/objc-map.o \
b2e61dde
MS
58 $(CXX_AND_OBJCXX_OBJS)
59
6cba282a
TT
60obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
61
d6d5951a
AK
62cc1objplus-checksum.c : build/genchecksum$(build_exeext) checksum-options \
63 $(OBJCXX_OBJS) $(BACKEND) $(LIBDEPS)
64 build/genchecksum$(build_exeext) $(OBJCXX_OBJS) $(BACKEND) \
a2a997ba 65 $(LIBDEPS) checksum-options > cc1objplus-checksum.c.tmp && \
d6d5951a
AK
66 $(srcdir)/../move-if-change cc1objplus-checksum.c.tmp \
67 cc1objplus-checksum.c
3fd30b88 68
3fd30b88 69cc1objplus$(exeext): $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBDEPS)
427b248d 70 +$(LLINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
f773bb84 71 $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
b2e61dde 72
e980df8e
TT
73# Objective C++ language specific files.
74
694e859a
TT
75objcp/objc-runtime-shared-support.o: objc/objc-runtime-shared-support.c
76 $(COMPILE) $<
77 $(POSTCOMPILE)
78
79objcp/objc-gnu-runtime-abi-01.o: objc/objc-gnu-runtime-abi-01.c
80 $(COMPILE) $<
81 $(POSTCOMPILE)
82
83objcp/objc-next-runtime-abi-01.o: objc/objc-next-runtime-abi-01.c
84 $(COMPILE) $<
85 $(POSTCOMPILE)
86
87objcp/objc-next-runtime-abi-02.o: objc/objc-next-runtime-abi-02.c
88 $(COMPILE) $<
89 $(POSTCOMPILE)
90
91objcp/objcp-act.o: objc/objc-act.c
92 $(COMPILE) $<
93 $(POSTCOMPILE)
94
95objcp/objc-encoding.o: objc/objc-encoding.c
96 $(COMPILE) $<
97 $(POSTCOMPILE)
98
99objcp/objc-map.o: objc/objc-map.c
100 $(COMPILE) $<
101 $(POSTCOMPILE)
3cc2dd4b 102
b2e61dde
MS
103po-generated:
104
b2e61dde
MS
105#\f
106# Build hooks:
107
b2e61dde
MS
108obj-c++.all.cross:
109obj-c++.start.encap:
110obj-c++.rest.encap:
111obj-c++.info:
dedfa466
PB
112obj-c++.install-info:
113obj-c++.dvi:
b5422ad7 114obj-c++.pdf:
5fbc6266 115obj-c++.install-pdf:
dedfa466 116obj-c++.html:
55bcd32b 117obj-c++.install-html:
b2e61dde
MS
118obj-c++.srcinfo:
119obj-c++.srcextra:
120obj-c++.man:
2a4c0366 121obj-c++.install-plugin:
b2e61dde
MS
122
123obj-c++.tags: force
dd2e44f0 124 cd $(srcdir)/objcp; etags -o TAGS.sub *.c *.h; \
b2e61dde
MS
125 etags --include TAGS.sub --include ../TAGS.sub
126
127lang_checks += check-obj-c++
128
129#\f
130# Install hooks:
131# cc1objplus is installed elsewhere as part of $(COMPILERS).
132
b2e61dde
MS
133obj-c++.install-common:
134
135obj-c++.install-man:
136
137obj-c++.uninstall:
138#\f
139# Clean hooks:
140# A lot of the ancillary files are deleted by the main makefile.
141# We just have to delete files specific to us.
142obj-c++.mostlyclean:
143 -rm -f objcp/*$(objext)
144 -rm -f objcp/*$(coverageexts)
145obj-c++.clean: obj-c++.mostlyclean
146obj-c++.distclean:
147 -rm -f objcp/config.status objcp/Makefile
148obj-c++.maintainer-clean:
149
150#\f
151# Stage hooks:
152
153obj-c++.stage1: stage1-start
154 -mv objcp/*$(objext) stage1/objcp
155obj-c++.stage2: stage2-start
156 -mv objcp/*$(objext) stage2/objcp
157obj-c++.stage3: stage3-start
158 -mv objcp/*$(objext) stage3/objcp
159obj-c++.stage4: stage4-start
160 -mv objcp/*$(objext) stage4/objcp
161obj-c++.stageprofile: stageprofile-start
162 -mv objcp/*$(objext) stageprofile/objcp
163obj-c++.stagefeedback: stagefeedback-start
164 -mv objcp/*$(objext) stagefeedback/objcp