]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/usr.bin/cc/cc_tools/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / usr.bin / cc / cc_tools / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 CFLAGS+=        -I.
6
7 .include "../Makefile.inc"
8
9 CFLAGS+=        -g
10 CFLAGS+=        -DGENERATOR_FILE -DHAVE_CONFIG_H
11
12 # Override LIBIBERTY set by Makefile.inc, We use our own for
13 # build tools.
14 LIBIBERTY=      libiberty.a
15
16 .PATH:  ${GCCDIR} ${GCCLIB}/libiberty
17
18 #-----------------------------------------------------------------------
19 # Determine content of variables used by the target/host config files
20
21 #
22 # The list of headers to go into tm.h
23 #
24 TARGET_INC+=    options.h
25 .if ${TARGET_CPUARCH} == "amd64"
26 TARGET_INC+=    i386/biarch64.h
27 .endif
28 .if ${TARGET_CPUARCH} != "arm"
29 TARGET_INC+=    ${GCC_CPU}/${GCC_CPU}.h
30 .endif
31 .if ${TARGET_CPUARCH} == "i386" || ${TARGET_CPUARCH} == "amd64"
32 TARGET_INC+=    ${GCC_CPU}/unix.h
33 TARGET_INC+=    ${GCC_CPU}/att.h
34 .endif
35 TARGET_INC+=    dbxelf.h
36 TARGET_INC+=    elfos-undef.h
37 TARGET_INC+=    elfos.h
38 TARGET_INC+=    freebsd-native.h
39 TARGET_INC+=    freebsd-spec.h
40 TARGET_INC+=    freebsd.h
41 .if ${TARGET_CPUARCH} != "i386" && ${TARGET_CPUARCH} != "amd64"
42 . if exists(${GCCDIR}/config/${GCC_CPU}/sysv4.h)
43 TARGET_INC+=    ${GCC_CPU}/sysv4.h
44 . endif
45 .endif
46 .if ${TARGET_CPUARCH} == "amd64"
47 TARGET_INC+=    ${GCC_CPU}/x86-64.h
48 .endif
49 .if ${TARGET_CPUARCH} == "arm" || ${TARGET_CPUARCH} == "mips"
50 TARGET_INC+=    ${GCC_CPU}/elf.h
51 .endif
52 .if ${TARGET_CPUARCH} == "arm"
53 TARGET_INC+=    ${GCC_CPU}/aout.h
54 .endif
55 .if ${TARGET_ARCH} == "powerpc64"
56 TARGET_INC+=    ${GCC_CPU}/biarch64.h
57 TARGET_INC+=    ${GCC_CPU}/default64.h
58 .endif
59 TARGET_INC+=    ${GCC_CPU}/freebsd.h
60 .if ${TARGET_CPUARCH} == "amd64"
61 TARGET_INC+=    ${GCC_CPU}/freebsd64.h
62 .endif
63 .if ${TARGET_CPUARCH} == "arm"
64 TARGET_INC+=    ${GCC_CPU}/arm.h
65 .endif
66 TARGET_INC+=    defaults.h
67
68 .for H in ${TARGET_INC}
69 .for D in ${GCCDIR}/config ${GCCDIR} ${.CURDIR}
70 .if exists($D/$H)
71 TARGET_INC_FILES+=     $D/$H
72 .endif
73 .endfor
74 .endfor
75
76 #
77 # gtyp includes.
78 #
79 srcdir=         ${GCCDIR}
80 CPPLIB_H=       ${GCCLIB}/libcpp/include/line-map.h \
81                 ${GCCLIB}/libcpp/include/cpplib.h
82 SYMTAB_H=       ${GCCLIB}/libcpp/include/symtab.h
83 CPP_ID_DATA_H=  ${CPPLIB_H} ${GCCLIB}/libcpp/include/cpp-id-data.h
84 HASHTAB_H=      ${GCCLIB}/include/hashtab.h
85 SPLAY_TREE_H=   ${GCCLIB}/include/splay-tree.h
86 out_file=       ${srcdir}/config/${GCC_CPU}/${GCC_CPU}.c
87 tm_file_list=   ${TARGET_INC_FILES}
88 host_xm_file_list= ${.CURDIR}/auto-host.h ${GCCLIB}/include/ansidecl.h
89 GTFILES_SRCDIR= ${srcdir}
90
91 # Copied unchanged from gcc/Makefile.in
92 GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h \
93   $(CPP_ID_DATA_H) $(host_xm_file_list) \
94   $(tm_file_list) $(HASHTAB_H) $(SPLAY_TREE_H) $(srcdir)/bitmap.h \
95   $(srcdir)/coverage.c $(srcdir)/rtl.h \
96   $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/function.h $(srcdir)/libfuncs.h $(SYMTAB_H) \
97   $(srcdir)/real.h $(srcdir)/varray.h $(srcdir)/insn-addr.h $(srcdir)/hwint.h \
98   $(srcdir)/ipa-reference.h $(srcdir)/output.h \
99   $(srcdir)/cselib.h $(srcdir)/basic-block.h  $(srcdir)/cgraph.h \
100   $(srcdir)/c-common.h $(srcdir)/c-tree.h $(srcdir)/reload.h \
101   $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
102   $(srcdir)/ipa-prop.c $(srcdir)/ipa-cp.c $(srcdir)/ipa-inline.c \
103   $(srcdir)/dbxout.c $(srcdir)/dwarf2out.c $(srcdir)/dwarf2asm.c \
104   $(srcdir)/dojump.c $(srcdir)/tree-profile.c \
105   $(srcdir)/emit-rtl.c $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \
106   $(srcdir)/function.c $(srcdir)/except.h \
107   $(srcdir)/gcse.c $(srcdir)/integrate.c $(srcdir)/lists.c $(srcdir)/optabs.c \
108   $(srcdir)/profile.c $(srcdir)/regclass.c \
109   $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c \
110   $(srcdir)/sdbout.c $(srcdir)/stor-layout.c \
111   $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c \
112   $(srcdir)/tree-mudflap.c $(srcdir)/tree-flow.h \
113   $(srcdir)/c-objc-common.c $(srcdir)/c-common.c $(srcdir)/c-parser.c \
114   $(srcdir)/tree-ssanames.c $(srcdir)/tree-eh.c $(srcdir)/tree-ssa-address.c \
115   $(srcdir)/tree-phinodes.c $(srcdir)/tree-cfg.c \
116   $(srcdir)/tree-dfa.c $(srcdir)/tree-ssa-propagate.c \
117   $(srcdir)/tree-iterator.c $(srcdir)/gimplify.c \
118   $(srcdir)/tree-chrec.h $(srcdir)/tree-vect-generic.c \
119   $(srcdir)/tree-ssa-operands.h $(srcdir)/tree-ssa-operands.c \
120   $(srcdir)/tree-profile.c $(srcdir)/tree-nested.c \
121   $(srcdir)/ipa-reference.c $(srcdir)/tree-ssa-structalias.h \
122   $(srcdir)/tree-ssa-structalias.c \
123   $(srcdir)/c-pragma.h $(srcdir)/omp-low.c \
124   $(srcdir)/targhooks.c $(srcdir)/cgraphunit.c $(out_file) \
125
126 # The list of frontend directories to look into
127 GTFILES_LANG_DIR_NAMES=
128
129 .if ${MK_CXX} != "no"
130 GTFILES_LANG_DIR_NAMES+=        cp
131 .endif
132
133 # The list of language specific files for gengtype
134 .for L in ${GTFILES_LANG_DIR_NAMES} c
135 .if exists(${GCCDIR}/$L-config-lang.in)
136 # Source the language config file
137 L_GTFILES!=     sh -c '. ${GCCDIR}/$L-config-lang.in; echo $$gtfiles'
138 .else
139 L_GTFILES!=     sh -c '. ${GCCDIR}/$L/config-lang.in; echo $$gtfiles'
140 .endif
141 .for F in ${L_GTFILES}
142 GTFILES_FILES+= $F
143 GTFILES_LANGS+= $L
144 .endfor
145 .endfor
146 GTFILES+=       ${GTFILES_FILES}
147
148 #
149 # Tree definition files.
150 #
151 TREE_DEF_FILES=
152
153 .if ${MK_CXX} != "no"
154 TREE_DEF_FILES+=        cp/cp-tree.def
155 .endif
156
157 #
158 # Option files.
159 #
160 OPT_FILES=      c.opt common.opt
161
162 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.opt)
163 OPT_FILES+=     ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.opt
164 .endif
165
166 .if exists(${.CURDIR}/${GCC_CPU}-freebsd.opt)
167 OPT_FILES+=     ${.CURDIR}/${GCC_CPU}-freebsd.opt
168 .endif
169
170 .if ${TARGET_CPUARCH} == "powerpc"
171 OPT_FILES+=     ${GCCDIR}/config/${GCC_CPU}/sysv4.opt
172 .endif
173
174 .if ${TARGET_CPUARCH} == "sparc64"
175 OPT_FILES+=     ${GCCDIR}/config/${GCC_CPU}/long-double-switch.opt
176 .endif
177
178 .if exists(${.CURDIR}/freebsd.opt)
179 OPT_FILES+=     ${.CURDIR}/freebsd.opt
180 .endif
181
182 #-----------------------------------------------------------------------
183 # Build rules for header files and generator tools
184
185 # Host config
186 config.h:
187         TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \
188         HEADERS="auto-host.h ansidecl.h" \
189         DEFINES="" \
190         /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET}
191
192 GENSRCS+=       config.h
193 CLEANFILES+=    cs-config.h
194
195 # Build config
196 bconfig.h:
197         TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \
198         HEADERS="auto-host.h ansidecl.h" \
199         DEFINES="" \
200         /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET}
201 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def)
202         echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET}
203 .endif
204
205 GENSRCS+=       bconfig.h
206 CLEANFILES+=    cs-bconfig.h
207
208 # tconfig.h
209 tconfig.h:
210         TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \
211         HEADERS="auto-host.h ansidecl.h" \
212         DEFINES="USED_FOR_TARGET" \
213         /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET}
214
215 GENSRCS+=       tconfig.h
216 CLEANFILES+=    cs-tconfig.h
217 # Options
218 optionlist: ${OPT_FILES}
219         LC_ALL=C awk -f ${GCCDIR}/opt-gather.awk ${.ALLSRC} > ${.TARGET}
220
221 options.h:      optionlist
222         LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
223             -f ${GCCDIR}/opth-gen.awk \
224                 < ${.ALLSRC} > ${.TARGET}
225
226 options.c:      optionlist
227         LC_ALL=C awk -f ${GCCDIR}/opt-functions.awk \
228             -f ${GCCDIR}/optc-gen.awk \
229                 -v header_name="config.h system.h coretypes.h tm.h" \
230                 < ${.ALLSRC} > ${.TARGET}
231 GENONLY+=       optionlist options.h options.c
232
233 # Target machine config
234 tm.h:
235         TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \
236         HEADERS="${TARGET_INC}" \
237         DEFINES="" \
238         /bin/sh ${GCCDIR}/mkconfig.sh ${.TARGET}
239 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def)
240         echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET}
241 .endif
242
243 GENSRCS+=       tm.h
244 CLEANFILES+=    cs-tm.h
245
246 # Target machine protos/preds.
247 tm_p.h:
248         TARGET_CPU_DEFAULT="${TARGET_CPU_DEFAULT}" \
249         HEADERS="${GCC_CPU}/${GCC_CPU}-protos.h tm-preds.h" \
250         DEFINES="" \
251         /bin/sh ${GCCDIR}/mkconfig.sh tm_p.h
252
253 GENSRCS+=       tm_p.h
254 CLEANFILES+=    cs-tm_p.h
255
256 # gencheck
257 gencheck.h: ${TREE_DEF_FILES}
258 .for F in ${TREE_DEF_FILES}
259         echo "#include \"$F\""                                  >> ${.TARGET}
260 .endfor
261         touch ${.TARGET}
262
263 GENSRCS+=       gencheck.h
264
265
266 # Source header for gtyp generator.
267 gtyp-gen.h:     ${GTFILES}
268         echo "/* This file is machine generated.  Do not edit.  */" > ${.TARGET}
269         echo "static const char * const srcdir = "              >> ${.TARGET}
270         echo "\"$(GTFILES_SRCDIR)\";"                           >> ${.TARGET}
271         echo "static const char * const lang_files[] = {"       >> ${.TARGET}
272 .for F in ${GTFILES_FILES}
273         echo "\"$F\", "                                         >> ${.TARGET}
274 .endfor
275         echo "NULL};"                                           >> ${.TARGET}
276         echo "static const char * const langs_for_lang_files[] = {">> ${.TARGET}
277 .for F in ${GTFILES_LANGS}
278         echo "\"$F\", "                                         >> ${.TARGET}
279 .endfor
280         echo "NULL};"                                           >> ${.TARGET}
281         echo "static const char * const all_files[] = {"        >> ${.TARGET}
282 .for F in ${GTFILES}
283         echo "\"$F\", "                                         >> ${.TARGET}
284 .endfor
285         echo "NULL};"                                           >> ${.TARGET}
286         echo "static const char * const lang_dir_names[] = {"   >> ${.TARGET}
287 .for F in c ${GTFILES_LANG_DIR_NAMES}
288         echo "\"$F\", "                                         >> ${.TARGET}
289 .endfor
290         echo "NULL};"                                           >> ${.TARGET}
291
292 GENSRCS+=       gtyp-gen.h
293
294 # Version header for gcov
295 gcov-iov.h:
296         echo "#define GCOV_VERSION ((gcov_unsigned_t)0x34303270)" >> ${.TARGET}
297
298 GENSRCS+=       gcov-iov.h
299
300 # Multilib config file
301 multilib.h:
302 .if ${TARGET_ARCH} == "powerpc64" || ${TARGET_ARCH} == "amd64"
303         echo 'static const char *const multilib_raw[] = { \
304             ". !m64 !m32;", \
305             "64:../lib m64 !m32;", \
306             "32:../lib32 !m64 m32;", NULL };'                   > ${.TARGET}
307         echo 'static const char *multilib_options = "m64/m32";' >> ${.TARGET}
308         echo 'static const char *const multilib_matches_raw[] = { \
309             "m64 m64;", "m32 m32;", NULL };'                    >> ${.TARGET}
310 .else
311         echo 'static const char *const multilib_raw[] = { \
312             ". ;", NULL };'                                     > ${.TARGET}
313         echo 'static const char *multilib_options = "";'        >> ${.TARGET}
314         echo 'static const char *const multilib_matches_raw[] = { \
315             NULL };'                                            >> ${.TARGET}
316 .endif
317         echo 'static const char *multilib_extra = "";'          >> ${.TARGET}
318         echo 'static const char *const multilib_exclusions_raw[] = { \
319             NULL };'                                            >> ${.TARGET}
320
321 GENSRCS+=       multilib.h
322
323 configargs.h:
324         echo 'static const char configuration_arguments[] ='    > ${.TARGET}
325         echo '  "FreeBSD/${TARGET_ARCH} system compiler";'      >> ${.TARGET}
326         echo 'static const char thread_model[] = "posix";'      >> ${.TARGET}
327         echo 'static const struct {'                            >> ${.TARGET}
328         echo '  const char *name, *value;'                      >> ${.TARGET}
329         echo '} configure_default_options[] = {'                >> ${.TARGET}
330         echo '  { "NULL", "NULL" } };'                          >> ${.TARGET}
331
332 GENSRCS+=       configargs.h
333
334 # Language spec files
335 specs.h:
336         echo '#include "cp/lang-specs.h"'                       > ${.TARGET}
337
338 GENSRCS+=       specs.h
339
340 gstdint.h:
341         echo '#include "sys/types.h"'                           > ${.TARGET}
342         echo '#include "sys/stdint.h"'                          >> ${.TARGET}
343
344 GENSRCS+=       gstdint.h
345
346 # Linked headers
347 gthr-default.h: ${GCCDIR}/gthr-posix.h
348         ln -sf ${.ALLSRC} ${.TARGET}
349
350 GENSRCS+=       gthr-default.h
351
352 unwind.h: ${GCCDIR}/unwind-generic.h
353         ln -sf ${.ALLSRC} ${.TARGET}
354
355 GENSRCS+=       unwind.h
356
357 #
358 # gtype gunk
359 #
360 gengtype-lex.c: gengtype-lex.l
361         flex -ogengtype-lex.c ${.ALLSRC}
362
363 gengtype-yacc.h: gengtype-yacc.y
364         yacc -d -o gengtype-yacc.c ${.ALLSRC}
365
366 gengtype-yacc.c: gengtype-yacc.h
367
368 gengtype-yacc+%DIKED.c: gengtype-yacc.c
369         cat    ${.ALLSRC} > ${.TARGET}
370         sed -e "s/xmalloc/malloc/g" \
371             -e "s/xrealloc/realloc/g" \
372             -e "s/malloc/xmalloc/g" \
373             -e "s/realloc/xrealloc/g" \
374             ${.ALLSRC} > ${.TARGET}
375
376 GENSRCS+= gengtype-lex.c gengtype-yacc.h gengtype-yacc+%DIKED.c
377 CLEANFILES+= gengtype-yacc.c
378
379 gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o errors.o \
380           ${LIBIBERTY}
381         ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
382
383 gtype-desc.h:   gengtype
384         ./gengtype
385         touch ${.TARGET}
386
387 gtype-desc.c:   gtype-desc.h
388
389 GENONLY+=       gtype-desc.c gtype-desc.h
390 CLEANFILES+=    gt-*.h gtype-*.h
391
392 #
393 # Generator tools.
394 #
395 .for F in check checksum genrtl modes
396 gen$F:  gen$F.o errors.o ${LIBIBERTY}
397         ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
398 .endfor
399
400 .for F in attr attrtab automata codes conditions config constants emit \
401         extract flags  opinit output peep preds recog
402 gen$F:  gen$F.o rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o \
403         gensupport.o print-rtl.o errors.o ${LIBIBERTY}
404         ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} -lm
405 .endfor
406
407 gencondmd:      gencondmd.o
408         ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
409
410 #
411 # Generated .md files.
412 #
413 insn-conditions.md:     gencondmd
414         ./gencondmd > ${.TARGET}
415 GENSRCS+=       insn-conditions.md
416
417 #
418 # Generated header files.
419 #
420
421 .for F in constants
422 insn-$F.h:      gen$F ${MD_FILE}
423         ./gen$F ${MD_FILE} > ${.TARGET}
424 GENSRCS+=       insn-$F.h
425 .endfor
426
427 .for F in attr codes config flags
428 insn-$F.h:      gen$F ${MD_FILE} insn-conditions.md
429         ./gen$F ${MD_FILE} insn-conditions.md > ${.TARGET}
430 GENSRCS+=       insn-$F.h
431 .endfor
432
433 # Header files with irregular names.
434 genrtl.h:       gengenrtl
435         ./gengenrtl -h > ${.TARGET}
436 GENSRCS+=       genrtl.h
437
438 tm-preds.h:     genpreds
439         ./genpreds -h ${MD_FILE} > ${.TARGET}
440 GENSRCS+=       tm-preds.h
441
442 tm-constrs.h:   genpreds
443         ./genpreds -c ${MD_FILE} > ${.TARGET}
444 GENSRCS+=       tm-constrs.h
445
446 tree-check.h:   gencheck
447         ./gencheck > ${.TARGET}
448 GENSRCS+=       tree-check.h
449
450 insn-modes.h:   genmodes
451         ./genmodes -h > ${.TARGET}
452 GENSRCS+=       insn-modes.h
453
454 #
455 # Generated source files.
456 #
457 .for F in attrtab automata emit extract opinit output peep preds recog
458 insn-$F.c:      gen$F ${MD_FILE} insn-conditions.md
459         ./gen$F ${MD_FILE} insn-conditions.md > ${.TARGET}
460 GENONLY+=       insn-$F.c
461 .endfor
462
463 .for F in conditions
464 insn-$F.c:      gen$F ${MD_FILE}
465         ./gen$F ${MD_FILE} > ${.TARGET}
466 GENSRCS+=       insn-$F.c
467 .endfor
468
469 # Source files with irregular names.
470 insn-modes.c:   genmodes
471         ./genmodes > ${.TARGET}
472 GENONLY+=       insn-modes.c
473
474 min-insn-modes.c:       genmodes
475         ./genmodes -m > ${.TARGET}
476 GENSRCS+=       min-insn-modes.c
477
478 genrtl.c:       gengenrtl
479         ./gengenrtl > ${.TARGET}
480 GENONLY+=       genrtl.c
481
482 gencondmd.c:    genconditions ${MD_FILE}
483         ./genconditions ${MD_FILE} > ${.TARGET}
484 GENSRCS+=       gencondmd.c
485
486 #-----------------------------------------------------------------------
487 # Build tools.
488
489 GNTOOLS+=       genattr genattrtab genautomata gencodes gencheck genchecksum \
490                 genconditions gencondmd genconfig genconstants genemit \
491                 genextract genflags gengenrtl gengtype genmodes genopinit \
492                 genoutput genpeep genpreds genrecog
493
494 all: ${GNTOOLS} ${GENSRCS} ${GENONLY}
495 beforedepend: ${GENONLY}
496
497 #
498 #-----------------------------------------------------------------------
499 # Build 'pocket' libiberty exclusively for build tools use.
500
501 LIBIBERTY_SRCS= choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
502         dyn-string.c fibheap.c fopen_unlocked.c getpwd.c getruntime.c \
503         hashtab.c hex.c lbasename.c make-temp-file.c md5.c obstack.c \
504         partition.c pex-unix.c physmem.c safe-ctype.c splay-tree.c xexit.c \
505         xmalloc.c xmemdup.c xstrdup.c xstrerror.c
506 LIBIBERTY_OBJS= ${LIBIBERTY_SRCS:R:S/$/.o/g}
507
508 .for _src in ${LIBIBERTY_SRCS}
509 ${_src:R:S/$/.o/}: ${_src}
510         ${CC} -c -I ${.CURDIR}/../libiberty ${CFLAGS} -o ${.TARGET} ${.IMPSRC}
511 .endfor
512
513 ${LIBIBERTY}: ${LIBIBERTY_OBJS}
514         @rm -f ${.TARGET}
515         @${AR} cq ${.TARGET} `lorder ${LIBIBERTY_OBJS} | tsort -q`
516         ${RANLIB} ${.TARGET}
517 CLEANFILES+=    ${LIBIBERTY} ${LIBIBERTY_OBJS}
518
519
520 #-----------------------------------------------------------------------
521 # Fixups.
522
523 # Set OBJS the same as bsd.prog.mk would do if we defined PROG.  We can't
524 # define PROG because we have multiple programs.
525 #
526 SRCS=           errors.c genattr.c genattrtab.c \
527                 genautomata.c gencheck.c genchecksum.c gencodes.c \
528                 genconditions.c genconfig.c genconstants.c genemit.c \
529                 genextract.c genflags.c gengenrtl.c gengtype.c genmodes.c \
530                 genopinit.c genoutput.c genpeep.c genpreds.c genrecog.c \
531                 gensupport.c ggc-none.c print-rtl.c read-rtl.c rtl.c \
532                 vec.c
533
534 SRCS+=          ${GENSRCS}
535 OBJS+=          ${SRCS:N*.h:R:S/$/.o/g}
536 GENOBJS+=       ${GENSRCS:N*.h:R:S/$/.o/g}
537 CLEANFILES+=    ${GENSRCS} ${GENONLY} ${GENOBJS} ${GNTOOLS}
538
539 #-----------------------------------------------------------------------
540 # Manual dependencies.
541 .if !exists(${DEPENDFILE})
542 .include  "Makefile.dep"
543 .endif
544
545 .include <bsd.prog.mk>
546 # DO NOT DELETE