]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/objcp/Make-lang.in
--(top level)--------------------------------------------
[thirdparty/gcc.git] / gcc / objcp / Make-lang.in
CommitLineData
b2e61dde
MS
1# Top level -*- makefile -*- fragment for GNU Objective-C++
2# Copyright (C) 2005 Free Software Foundation, Inc.
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
9#the Free Software Foundation; either version 2, or (at your option)
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
18#along with GCC; see the file COPYING. If not, write to
f12c30a8
KC
19#the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20#Boston, MA 02110-1301, USA.
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,
b5422ad7 26# foo.install-common, foo.install-man, foo.install-info, foo.dvi, foo.pdf
b2e61dde
MS
27# foo.uninstall,
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
3fd30b88
GK
54cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \
55 $(LIBDEPS)
b2e61dde 56 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
3fd30b88
GK
57 $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) $(LIBS)
58
f726bf47
KH
59cc1objplus-checksum.c : cc1objplus-dummy$(exeext) build/genchecksum$(build_exeext)
60 build/genchecksum$(build_exeext) cc1objplus-dummy$(exeext) > $@
3fd30b88
GK
61
62cc1objplus-checksum.o : cc1objplus-checksum.c
63
64cc1objplus$(exeext): $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBDEPS)
65 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
66 $(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS)
b2e61dde
MS
67
68# Objective C++ language specific files.
69
70objcp/objcp-lang.o : objcp/objcp-lang.c \
71 $(CXX_TREE_H) $(TM_H) toplev.h debug.h langhooks.h objc/objc-act.h \
48779194
VR
72 $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-objcp.h \
73 $(DIAGNOSTIC_H) cp/cp-objcp-common.h $(TREE_GIMPLE_H)
b2e61dde
MS
74
75objcp/objcp-decl.o : objcp/objcp-decl.c \
76 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_TREE_H) \
48779194
VR
77 toplev.h $(GGC_H) $(C_PRAGMA_H) input.h $(FLAGS_H) output.h \
78 objc/objc-act.h objcp/objcp-decl.h $(TREE_GIMPLE_H) $(EXPR_H) $(TARGET_H)
b2e61dde
MS
79
80# The following must be an explicit rule; please keep in sync with the implicit
81# one in Makefile.in.
82objcp/objcp-act.o : objc/objc-act.c \
83 $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
48779194
VR
84 $(EXPR_H) $(TARGET_H) $(CXX_TREE_H) $(DIAGNOSTIC_H) toplev.h $(FLAGS_H) \
85 objc/objc-act.h input.h $(FUNCTION_H) output.h debug.h langhooks.h \
98273e5a 86 objcp/objcp-decl.h $(LANGHOOKS_DEF_H) $(HASHTAB_H) gt-objc-objc-act.h \
48779194 87 $(TREE_GIMPLE_H)
b2e61dde
MS
88 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
89
90po-generated:
91
b2e61dde
MS
92#\f
93# Build hooks:
94
b2e61dde
MS
95obj-c++.all.cross:
96obj-c++.start.encap:
97obj-c++.rest.encap:
98obj-c++.info:
dedfa466
PB
99obj-c++.install-info:
100obj-c++.dvi:
b5422ad7 101obj-c++.pdf:
dedfa466 102obj-c++.html:
b2e61dde
MS
103obj-c++.srcinfo:
104obj-c++.srcextra:
105obj-c++.man:
106
107obj-c++.tags: force
108 cd $(srcdir)/objcp; etags -o TAGS.sub *.y *.c *.h; \
109 etags --include TAGS.sub --include ../TAGS.sub
110
111lang_checks += check-obj-c++
112
113#\f
114# Install hooks:
115# cc1objplus is installed elsewhere as part of $(COMPILERS).
116
b2e61dde
MS
117obj-c++.install-common:
118
119obj-c++.install-man:
120
121obj-c++.uninstall:
122#\f
123# Clean hooks:
124# A lot of the ancillary files are deleted by the main makefile.
125# We just have to delete files specific to us.
126obj-c++.mostlyclean:
127 -rm -f objcp/*$(objext)
128 -rm -f objcp/*$(coverageexts)
129obj-c++.clean: obj-c++.mostlyclean
130obj-c++.distclean:
131 -rm -f objcp/config.status objcp/Makefile
132obj-c++.maintainer-clean:
133
134#\f
135# Stage hooks:
136
137obj-c++.stage1: stage1-start
138 -mv objcp/*$(objext) stage1/objcp
139obj-c++.stage2: stage2-start
140 -mv objcp/*$(objext) stage2/objcp
141obj-c++.stage3: stage3-start
142 -mv objcp/*$(objext) stage3/objcp
143obj-c++.stage4: stage4-start
144 -mv objcp/*$(objext) stage4/objcp
145obj-c++.stageprofile: stageprofile-start
146 -mv objcp/*$(objext) stageprofile/objcp
147obj-c++.stagefeedback: stagefeedback-start
148 -mv objcp/*$(objext) stagefeedback/objcp