]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/objcp/Make-lang.in
tree-vrp.c (vrp_evaluate_conditional): Mark strings for translation.
[thirdparty/gcc.git] / gcc / objcp / Make-lang.in
CommitLineData
b2e61dde 1# Top level -*- makefile -*- fragment for GNU Objective-C++
7980bfb8 2# Copyright (C) 2005, 2007, 2008, 2009 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
BM
26# foo.install-common, foo.install-man, foo.install-info, foo.install-pdf,
27# 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 \
52 $(CXX_AND_OBJCXX_OBJS)
53
6cba282a
TT
54obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
55
3fd30b88
GK
56cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \
57 $(LIBDEPS)
c607156f 58 $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
f773bb84 59 $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
3fd30b88 60
f726bf47
KH
61cc1objplus-checksum.c : cc1objplus-dummy$(exeext) build/genchecksum$(build_exeext)
62 build/genchecksum$(build_exeext) cc1objplus-dummy$(exeext) > $@
3fd30b88 63
6bc7bc14 64cc1objplus-checksum.o : cc1objplus-checksum.c $(CONFIG_H) $(SYSTEM_H)
e980df8e 65
3fd30b88 66cc1objplus$(exeext): $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBDEPS)
c607156f 67 $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \
f773bb84 68 $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
b2e61dde 69
e980df8e
TT
70# Objective C++ language specific files.
71
72objcp/objcp-lang.o : objcp/objcp-lang.c \
73 $(CXX_TREE_H) $(TM_H) toplev.h debug.h langhooks.h objc/objc-act.h \
74 $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-objcp.h \
726a989a 75 $(DIAGNOSTIC_H) cp/cp-objcp-common.h $(GIMPLE_H)
e980df8e
TT
76
77objcp/objcp-decl.o : objcp/objcp-decl.c \
78 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_TREE_H) \
79 toplev.h $(GGC_H) $(C_PRAGMA_H) input.h $(FLAGS_H) output.h \
726a989a 80 objc/objc-act.h objcp/objcp-decl.h $(GIMPLE_H) $(EXPR_H) $(TARGET_H)
e980df8e
TT
81
82# The following must be an explicit rule; please keep in sync with the implicit
83# one in Makefile.in.
84objcp/objcp-act.o : objc/objc-act.c \
85 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
86 $(EXPR_H) $(TARGET_H) $(CXX_TREE_H) $(DIAGNOSTIC_H) toplev.h $(FLAGS_H) \
87 objc/objc-act.h input.h $(FUNCTION_H) output.h debug.h langhooks.h \
88 objcp/objcp-decl.h $(LANGHOOKS_DEF_H) $(HASHTAB_H) gt-objc-objc-act.h \
726a989a 89 $(GIMPLE_H)
7980bfb8
ILT
90 $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< \
91 $(OUTPUT_OPTION)
e1f447a8 92
b2e61dde
MS
93po-generated:
94
b2e61dde
MS
95#\f
96# Build hooks:
97
b2e61dde
MS
98obj-c++.all.cross:
99obj-c++.start.encap:
100obj-c++.rest.encap:
101obj-c++.info:
dedfa466
PB
102obj-c++.install-info:
103obj-c++.dvi:
b5422ad7 104obj-c++.pdf:
5fbc6266 105obj-c++.install-pdf:
dedfa466 106obj-c++.html:
b2e61dde
MS
107obj-c++.srcinfo:
108obj-c++.srcextra:
109obj-c++.man:
110
111obj-c++.tags: force
112 cd $(srcdir)/objcp; etags -o TAGS.sub *.y *.c *.h; \
113 etags --include TAGS.sub --include ../TAGS.sub
114
115lang_checks += check-obj-c++
116
117#\f
118# Install hooks:
119# cc1objplus is installed elsewhere as part of $(COMPILERS).
120
b2e61dde
MS
121obj-c++.install-common:
122
123obj-c++.install-man:
124
125obj-c++.uninstall:
126#\f
127# Clean hooks:
128# A lot of the ancillary files are deleted by the main makefile.
129# We just have to delete files specific to us.
130obj-c++.mostlyclean:
131 -rm -f objcp/*$(objext)
132 -rm -f objcp/*$(coverageexts)
133obj-c++.clean: obj-c++.mostlyclean
134obj-c++.distclean:
135 -rm -f objcp/config.status objcp/Makefile
136obj-c++.maintainer-clean:
137
138#\f
139# Stage hooks:
140
141obj-c++.stage1: stage1-start
142 -mv objcp/*$(objext) stage1/objcp
143obj-c++.stage2: stage2-start
144 -mv objcp/*$(objext) stage2/objcp
145obj-c++.stage3: stage3-start
146 -mv objcp/*$(objext) stage3/objcp
147obj-c++.stage4: stage4-start
148 -mv objcp/*$(objext) stage4/objcp
149obj-c++.stageprofile: stageprofile-start
150 -mv objcp/*$(objext) stageprofile/objcp
151obj-c++.stagefeedback: stagefeedback-start
152 -mv objcp/*$(objext) stagefeedback/objcp