gcc4X man pages: Introduce generic MLINK handling
[dragonfly.git] / gnu / usr.bin / cc47 / Makefile.langs
CommitLineData
b450dd39
JM
1.include "Makefile.inc"
2
38fdaecd
JM
3COMPVERSION= gcc47
4
b450dd39
JM
5.if !defined(NO_CXX)
6lang_tree_files+= cp/cp-tree.def
7.endif
8.if !defined(NO_OBJC)
9lang_tree_files+= objc/objc-tree.def
10.endif
11
12optionsfiles= ${GCCDIR}/gcc/c-family/c.opt
13optionsfiles+= ${GCCDIR}/gcc/common.opt
14optionsfiles+= ${GCCDIR}/gcc/lto/lang.opt
15optionsfiles+= ${GCCDIR}/gcc/config/${GCC_CPU}/${GCC_CPU}.opt
16optionsfiles+= ${GCCDIR}/gcc/config/rpath.opt
17optionsfiles+= ${GCCDIR}/gcc/config/freebsd.opt
18
19LANG_SPECS_FILES= lto/lang-specs.h
20.if !defined(NO_CXX)
21LANG_SPECS_FILES+= cp/lang-specs.h
22.endif
23.if !defined(NO_OBJC)
24LANG_SPECS_FILES+= objc/lang-specs.h
25.endif
26
27# Object files for gcc driver.
28GCC_SRCS = gcc.c ggc-none.c
29EXTRA_GCC_SRCS = driver-${GCC_CPU}.c
30
31# this is directly from GCC's Makefile, beware evil
32# gtype-desc.h will generate wrong if language order changed
33GTFILES = $(CPP_ID_DATA_H) $(srcdir)/input.h $(srcdir)/coretypes.h \
34 $(srcdir)/vecprim.h $(srcdir)/vecir.h \
35 $(host_xm_file_list) \
36 $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
37 $(srcdir)/alias.h $(srcdir)/coverage.c $(srcdir)/rtl.h \
38 $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/libfuncs.h $(SYMTAB_H) \
39 $(srcdir)/real.h $(srcdir)/function.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
40 $(srcdir)/fixed-value.h \
41 $(srcdir)/output.h $(srcdir)/cfgloop.h \
42 $(srcdir)/cselib.h $(srcdir)/basic-block.h $(srcdir)/ipa-ref.h $(srcdir)/cgraph.h \
43 $(srcdir)/reload.h $(srcdir)/caller-save.c \
44 $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
45 $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c $(srcdir)/matrix-reorg.c \
46 $(srcdir)/dbxout.c \
47 $(srcdir)/dwarf2out.h \
48 $(srcdir)/dwarf2asm.c \
49 $(srcdir)/dwarf2cfi.c \
50 $(srcdir)/dwarf2out.c \
51 $(srcdir)/tree-vect-generic.c \
52 $(srcdir)/dojump.c \
53 $(srcdir)/emit-rtl.c $(srcdir)/except.h $(srcdir)/explow.c $(srcdir)/expr.c \
54 $(srcdir)/expr.h \
55 $(srcdir)/function.c $(srcdir)/except.c \
56 $(srcdir)/gcse.c $(srcdir)/godump.c \
57 $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \
58 $(srcdir)/profile.c $(srcdir)/mcf.c \
59 $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c $(srcdir)/cfglayout.h \
60 $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
61 $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
62 $(srcdir)/gimple.h $(srcdir)/gimple.c \
63 $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
64 $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
65 $(srcdir)/tree-cfg.c \
66 $(srcdir)/tree-dfa.c \
67 $(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \
68 $(srcdir)/tree-chrec.h \
69 $(srcdir)/tree-scalar-evolution.c \
70 $(srcdir)/tree-ssa-operands.h \
71 $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
72 $(srcdir)/varpool.c \
73 $(srcdir)/tree-parloops.c \
74 $(srcdir)/omp-low.c \
75 $(srcdir)/targhooks.c $(out_file) $(srcdir)/passes.c $(srcdir)/cgraphunit.c \
76 $(srcdir)/tree-ssa-propagate.c \
77 $(srcdir)/tree-phinodes.c \
78 $(srcdir)/lto-symtab.c \
79 $(srcdir)/tree-ssa-alias.h \
80 $(srcdir)/ipa-prop.h \
81 $(srcdir)/trans-mem.c \
82 $(srcdir)/lto-streamer.h \
83 $(srcdir)/target-globals.h \
84 $(srcdir)/ipa-inline.h \
85
86.if !defined(NO_CXX)
87GTFILES_CPP= \
88 [cp] \
89 $(srcdir)/cp/rtti.c \
90 $(srcdir)/cp/mangle.c \
91 $(srcdir)/cp/name-lookup.h \
92 $(srcdir)/cp/name-lookup.c \
93 $(srcdir)/cp/cp-tree.h \
94 $(srcdir)/cp/decl.h \
95 $(srcdir)/cp/call.c \
96 $(srcdir)/cp/decl.c \
97 $(srcdir)/cp/decl2.c \
98 $(srcdir)/cp/pt.c \
99 $(srcdir)/cp/repo.c \
100 $(srcdir)/cp/semantics.c \
101 $(srcdir)/cp/tree.c \
102 $(srcdir)/cp/parser.h \
103 $(srcdir)/cp/parser.c \
104 $(srcdir)/cp/method.c \
105 $(srcdir)/cp/typeck2.c \
106 $(srcdir)/c-family/c-common.c \
107 $(srcdir)/c-family/c-common.h \
108 $(srcdir)/c-family/c-objc.h \
109 $(srcdir)/c-family/c-lex.c \
110 $(srcdir)/c-family/c-pragma.h \
111 $(srcdir)/c-family/c-pragma.c \
112 $(srcdir)/cp/class.c \
113 $(srcdir)/cp/cp-objcp-common.c \
114 $(srcdir)/cp/cp-lang.c \
115 $(srcdir)/cp/except.c
116GTFILES+= ${GTFILES_CPP}
117.endif
118
119GTFILES_LTO= \
120 [lto] \
121 $(srcdir)/lto/lto-tree.h \
122 $(srcdir)/lto/lto-lang.c \
123 $(srcdir)/lto/lto.c
124GTFILES+= ${GTFILES_LTO}
125
126.if !defined(NO_OBJC)
127GTFILES_OBJC= \
128 [objc] \
129 $(srcdir)/objc/objc-map.h \
130 $(srcdir)/c-family/c-objc.h \
131 $(srcdir)/objc/objc-act.h \
132 $(srcdir)/objc/objc-act.c \
133 $(srcdir)/objc/objc-runtime-shared-support.c \
134 $(srcdir)/objc/objc-gnu-runtime-abi-01.c \
135 $(srcdir)/objc/objc-next-runtime-abi-01.c \
136 $(srcdir)/objc/objc-next-runtime-abi-02.c \
137 $(srcdir)/c-parser.c $(srcdir)/c-tree.h \
138 $(srcdir)/c-decl.c $(srcdir)/c-lang.h \
139 $(srcdir)/c-objc-common.c \
140 $(srcdir)/c-family/c-common.c \
141 $(srcdir)/c-family/c-common.h \
142 $(srcdir)/c-family/c-cppbuiltin.c \
143 $(srcdir)/c-family/c-pragma.h \
144 $(srcdir)/c-family/c-pragma.c \
145 [objcp] \
146 $(srcdir)/cp/rtti.c \
147 $(srcdir)/cp/mangle.c \
148 $(srcdir)/cp/name-lookup.h \
149 $(srcdir)/cp/name-lookup.c \
150 $(srcdir)/cp/cp-tree.h \
151 $(srcdir)/cp/decl.h \
152 $(srcdir)/cp/call.c \
153 $(srcdir)/cp/decl.c \
154 $(srcdir)/cp/decl2.c \
155 $(srcdir)/cp/pt.c \
156 $(srcdir)/cp/repo.c \
157 $(srcdir)/cp/semantics.c \
158 $(srcdir)/cp/tree.c \
159 $(srcdir)/cp/parser.h \
160 $(srcdir)/cp/parser.c \
161 $(srcdir)/cp/method.c \
162 $(srcdir)/cp/typeck2.c \
163 $(srcdir)/c-family/c-common.c \
164 $(srcdir)/c-family/c-common.h \
165 $(srcdir)/c-family/c-objc.h \
166 $(srcdir)/c-family/c-lex.c \
167 $(srcdir)/c-family/c-pragma.h \
168 $(srcdir)/c-family/c-pragma.c \
169 $(srcdir)/cp/class.c \
170 $(srcdir)/cp/cp-objcp-common.c \
171 $(srcdir)/objc/objc-map.h \
172 $(srcdir)/objc/objc-act.h \
173 $(srcdir)/objc/objc-act.c \
174 $(srcdir)/objc/objc-runtime-shared-support.c \
175 $(srcdir)/objc/objc-gnu-runtime-abi-01.c \
176 $(srcdir)/objc/objc-next-runtime-abi-01.c \
177 $(srcdir)/objc/objc-next-runtime-abi-02.c \
178 $(srcdir)/c-family/c-cppbuiltin.c
179GTFILES+= ${GTFILES_OBJC}
180.endif
181
182# C
183GTFILES_C+= \
184 [c] \
185 $(srcdir)/c-lang.c \
186 $(srcdir)/c-tree.h \
187 $(srcdir)/c-decl.c \
188 $(srcdir)/c-family/c-common.c \
189 $(srcdir)/c-family/c-common.h \
190 $(srcdir)/c-family/c-objc.h \
191 $(srcdir)/c-family/c-cppbuiltin.c \
192 $(srcdir)/c-family/c-pragma.h \
193 $(srcdir)/c-family/c-pragma.c \
194 $(srcdir)/c-objc-common.c \
195 $(srcdir)/c-parser.c \
196 $(srcdir)/c-lang.h
197GTFILES+= ${GTFILES_C}
198
199# verbatim from gcc/Makefile and gcc/objc/Make-lang.in
200# Language-specific object files for C and Objective C.
201C_COMMON_OBJS= \
202 c-common.c \
203 c-cppbuiltin.c \
204 c-dump.c \
205 c-format.c \
206 c-gimplify.c \
207 c-lex.c \
208 c-omp.c \
209 c-opts.c \
210 c-pch.c \
211 c-ppoutput.c \
212 c-pragma.c \
213 c-pretty-print.c \
214 c-semantics.c \
215 c-ada-spec.c
216
217C_TARGET_OBJS= \
218 ${GCC_CPU}-c.c \
219 default-c.c
220
221CXX_TARGET_OBJS= \
222 ${GCC_CPU}-c.c \
223 default-c.c
224
225C_AND_OBJC_OBJS= \
226 attribs.c \
227 c-errors.c \
228 c-decl.c \
229 c-typeck.c \
230 c-convert.c \
231 c-aux-info.c \
232 c-objc-common.c \
233 c-parser.c \
234 tree-mudflap.c \
235 ${C_COMMON_OBJS} \
236 ${C_TARGET_OBJS}