Merge from vendor branch LIBSTDC++:
[dragonfly.git] / gnu / usr.bin / cc3 / cc_int / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/cc_int/Makefile,v 1.39 2004/01/12 22:02:31 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/cc_int/Attic/Makefile,v 1.1 2004/01/17 22:40:15 drhodus Exp $
3
4 .include "../Makefile.inc"
5
6 .PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty
7
8 LIB=            cc_int
9 INTERNALLIB=    YES
10
11 #       dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
12 #       alias.c bitmap.c dwarf2out.c dyn-string.c \
13 SRCS=   c-common.c c-dump.c c-format.c c-opts.c \
14         c-pragma.c c-semantics.c \
15         caller-save.c calls.c combine.c convert.c cse.c \
16         dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \
17         final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
18         gtype-desc.c haifa-sched.c \
19         integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
20         print-rtl.c print-tree.c \
21         ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \
22         real.c recog.c reg-stack.c regclass.c \
23         reload.c reload1.c reorg.c rtl.c rtlanal.c \
24         sbitmap.c sdbout.c stmt.c stor-layout.c \
25         toplev.c tracer.c tree.c unroll.c varasm.c xcoffout.c \
26         alias.c bitmap.c dyn-string.c \
27         genrtl.c profile.c regmove.c varray.c \
28         attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c
29
30 SRCS+=  ${GCC_CPU}.c
31 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c)
32 SRCS+=  ${GCC_CPU}-c.c
33 .endif
34
35 SRCS+=  bb-reorder.c conflict.c ggc-common.c \
36         ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
37         simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c
38
39 # insn-* gunk -- headers are built in cc_tools, as they are used by the
40 # "build-tools"
41 .for F in attrtab emit extract opinit output peep recog
42 SRCS+=  insn-$F.c
43 CLEANFILES+= insn-$F.c
44 insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
45         ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
46 .endfor
47
48 #       shared between the drivers
49 SRCS+=  multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c mbchar.c concat.c make-temp-file.c
50 #       C_AND_OBJC_OBJS
51 #SRCS+= attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \
52 #       c-convert.c c-aux-info.c c-common.c c-format.c c-semantics.c \
53 #       c-objc-common.c
54
55 #       XXX: shared by cc1, cc1obj & cpp0
56 #       cc1plus seems to be able to tolerate these here,
57 #       BUT only if the right .o's are specified in cc1plus/Makefile
58 SRCS+=  c-typeck.c \
59         c-errors.c c-convert.c c-aux-info.c c-objc-common.c
60
61 #       libbackend
62 SRCS+=  builtins.c diagnostic.c doloop.c dominance.c et-forest.c \
63         except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \
64         stringpool.c c-lex.c langhooks.c hashtable.c \
65         hooks.c \
66         cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c
67
68 #       libcpp
69 SRCS+=  cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \
70         cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c
71
72 #       stuff that makes libiberty now required (2.95) and shouldn't be...
73 SRCS+=  splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c xmemdup.c physmem.c
74 CFLAGS+=        -DHAVE_CONFIG_H
75
76 CFLAGS+=        -DTARGET_NAME=\"${target}\" -DIN_GCC
77 .if defined(TARGET_CPU_DEFAULT)
78 CFLAGS+=        -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT}
79 .endif
80
81 UNDERSCORES=    0
82 SRCS+=  underscore.c
83 CLEANFILES+=    underscore.c
84 underscore.c: Makefile
85         echo '/*WARNING: This file is automatically generated!*/' >${.TARGET}
86         echo "int prepends_underscore = ${UNDERSCORES};"          >>${.TARGET}
87
88 .include <bsd.lib.mk>