OSDN Git Service

* ChangeLog: New.
[pf3gnuchains/gcc-fork.git] / gcc / objcp / Make-lang.in
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
19 #the Free Software Foundation, 59 Temple Place - Suite 330,
20 #Boston, MA 02111-1307, USA.
21
22 # This file provides the language dependent support in the main Makefile.
23 # Each language makefile fragment must provide the following targets:
24 #
25 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
26 # foo.install-normal, foo.install-common, foo.install-man,
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.
41 OBJ-C++ obj-c++: cc1objplus$(exeext)
42
43 # Tell GNU make to ignore these if they exist.
44 .PHONY: Obj-c++ obj-C++
45
46 # Use maximal warnings for this front end.  Also, make ObjC and C++
47 # headers accessible.
48 objcp-warn = $(STRICT_WARN) -DOBJCPLUS -I$(srcdir)/objc -I$(srcdir)/cp
49
50 # Language-specific object files for Objective C++.
51 OBJCXX_OBJS = objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o \
52    $(CXX_AND_OBJCXX_OBJS)
53
54 cc1objplus$(exeext): $(OBJCXX_OBJS) $(BACKEND) $(LIBDEPS)
55         $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
56                 $(OBJCXX_OBJS) $(BACKEND) $(LIBS)
57
58 # Objective C++ language specific files.
59
60 objcp/objcp-lang.o : objcp/objcp-lang.c \
61   $(CXX_TREE_H) $(TM_H) toplev.h debug.h langhooks.h objc/objc-act.h \
62   $(LANGHOOKS_DEF_H) c-common.h gtype-objcp.h $(CXX_PRETTY_PRINT_H) \
63   $(DIAGNOSTIC_H) cp/cp-objcp-common.h
64
65 objcp/objcp-decl.o : objcp/objcp-decl.c \
66    $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(C_TREE_H) \
67    toplev.h $(GGC_H) c-pragma.h input.h flags.h output.h objc/objc-act.h \
68    objcp/objcp-decl.h
69
70 # The following must be an explicit rule; please keep in sync with the implicit
71 # one in Makefile.in.
72 objcp/objcp-act.o : objc/objc-act.c \
73    $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
74    $(EXPR_H) $(TARGET_H) $(CXX_TREE_H) diagnostic.h toplev.h flags.h \
75    objc/objc-act.h input.h function.h output.h debug.h langhooks.h \
76    objcp/objcp-decl.h $(LANGHOOKS_DEF_H) $(HASHTAB_H) gt-objc-objc-act.h
77         $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $< $(OUTPUT_OPTION)
78
79 po-generated:
80
81 gtype-objcp.h : s-gtype ; @true
82
83 #\f
84 # Build hooks:
85
86 obj-c++.all.build:
87 obj-c++.all.cross:
88 obj-c++.start.encap:
89 obj-c++.rest.encap:
90 obj-c++.info:
91 obj-c++.srcinfo:
92 obj-c++.srcextra:
93 obj-c++.man:
94
95 obj-c++.tags: force
96         cd $(srcdir)/objcp; etags -o TAGS.sub *.y *.c *.h; \
97         etags --include TAGS.sub --include ../TAGS.sub
98
99 lang_checks += check-obj-c++
100
101 #\f
102 # Install hooks:
103 # cc1objplus is installed elsewhere as part of $(COMPILERS).
104
105 obj-c++.install-normal:
106
107 obj-c++.install-common:
108
109 obj-c++.install-man:
110
111 obj-c++.uninstall:
112 #\f
113 # Clean hooks:
114 # A lot of the ancillary files are deleted by the main makefile.
115 # We just have to delete files specific to us.
116 obj-c++.mostlyclean:
117         -rm -f objcp/*$(objext)
118         -rm -f objcp/*$(coverageexts)
119 obj-c++.clean: obj-c++.mostlyclean
120 obj-c++.distclean:
121         -rm -f objcp/config.status objcp/Makefile
122 obj-c++.maintainer-clean:
123
124 #\f
125 # Stage hooks:
126
127 obj-c++.stage1: stage1-start
128         -mv objcp/*$(objext) stage1/objcp
129 obj-c++.stage2: stage2-start
130         -mv objcp/*$(objext) stage2/objcp
131 obj-c++.stage3: stage3-start
132         -mv objcp/*$(objext) stage3/objcp
133 obj-c++.stage4: stage4-start
134         -mv objcp/*$(objext) stage4/objcp
135 obj-c++.stageprofile: stageprofile-start
136         -mv objcp/*$(objext) stageprofile/objcp
137 obj-c++.stagefeedback: stagefeedback-start
138         -mv objcp/*$(objext) stagefeedback/objcp