]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - gnu/usr.bin/cc/cc_int/Makefile
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / gnu / usr.bin / cc / cc_int / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .include "../Makefile.inc"
6 .include "../Makefile.ver"
7
8 .PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/config/${GCC_CPU}
9
10 LIB=    backend
11 INTERNALLIB=
12
13 EXTRA_OBJS=
14 GGC=            ggc-page.o
15 host_hook_obj=  host-default.o
16
17 #
18 # Most lists copied verbatim from GCC Makefiles.
19 #
20 OBJS-common = \
21  double-int.o tree-chrec.o tree-scalar-evolution.o tree-data-ref.o         \
22  tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o  \
23  gimplify.o tree-pretty-print.o tree-into-ssa.o                            \
24  tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-uncprop.o              \
25  tree-ssa-dce.o  tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o          \
26  tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o       \
27  tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o        \
28  tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o     \
29  omp-low.o tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o       \
30  tree-vect-generic.o tree-ssa-loop.o tree-ssa-loop-niter.o                 \
31  tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-ssa-threadedge.o       \
32  tree-vectorizer.o tree-vect-analyze.o tree-vect-transform.o               \
33  tree-vect-patterns.o tree-ssa-loop-prefetch.o                             \
34  tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-address.o           \
35  tree-ssa-math-opts.o                                                      \
36  tree-ssa-loop-ivopts.o tree-if-conv.o tree-ssa-loop-unswitch.o            \
37  alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o            \
38  cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o             \
39  cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o    \
40  cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o         \
41  dbxout.o ddg.o tree-ssa-loop-ch.o loop-invariant.o tree-ssa-loop-im.o     \
42  debug.o df-core.o df-problems.o df-scan.o dfp.o diagnostic.o dojump.o     \
43  dominance.o loop-doloop.o                                                 \
44  dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o loop-iv.o            \
45  expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o             \
46  genrtl.o ggc-common.o global.o graph.o gtype-desc.o                       \
47  haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o     \
48  insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o       \
49  integrate.o intl.o jump.o  langhooks.o lcm.o lists.o local-alloc.o        \
50  mode-switching.o modulo-sched.o optabs.o options.o opts.o opts-common.o \
51  params.o postreload.o postreload-gcse.o predict.o                         \
52  insn-preds.o insn-automata.o pointer-set.o                                \
53  print-rtl.o print-tree.o profile.o value-prof.o var-tracking.o            \
54  real.o recog.o reg-stack.o regclass.o regmove.o regrename.o               \
55  reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o         \
56  sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o       \
57  see.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o            \
58  struct-equiv.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o \
59  varasm.o varray.o vec.o version.o vmsdbgout.o xcoffout.o alloc-pool.o     \
60  et-forest.o cfghooks.o bt-load.o pretty-print.o $(GGC) web.o passes.o     \
61  tree-profile.o rtlhooks.o cfgexpand.o lambda-mat.o                        \
62  lambda-trans.o lambda-code.o tree-loop-linear.o tree-ssa-sink.o           \
63  tree-vrp.o tree-stdarg.o tree-cfgcleanup.o tree-ssa-reassoc.o             \
64  tree-ssa-structalias.o tree-object-size.o                                 \
65  rtl-factoring.o
66
67 OBJS-archive=   $(EXTRA_OBJS) $(host_hook_obj) tree-inline.o               \
68   cgraph.o cgraphunit.o tree-nomudflap.o ipa.o ipa-inline.o                \
69   ipa-utils.o ipa-reference.o ipa-pure-const.o ipa-type-escape.o           \
70   ipa-prop.o ipa-cp.o
71
72 OBJS-md=  ${GCC_CPU}.o
73 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c)
74 OBJS-md+= ${GCC_CPU}-c.o
75 .endif
76
77 # Target specific, C specific object file
78 C_TARGET_OBJS=
79
80 # Language-specific object files for C and Objective C.
81 C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \
82   c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \
83   c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \
84   c-objc-common.o c-dump.o c-pch.o c-parser.o $(C_TARGET_OBJS) \
85   c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o
86
87 # Language-specific object files for C.
88 C_OBJS = c-lang.o stub-objc.o $(C_AND_OBJC_OBJS)
89
90 # Put objC stub objects in library. objc frontend will override it
91 # Put dummy checksum object in library too. It will be overridden
92 # by each indidual front-end binary as needed.
93 OBJS-dummy=  stub-objc.o dummy-checksum.o
94
95 OBJS-all=  ${OBJS-common} ${OBJS-archive} ${OBJS-md} ${C_AND_OBJC_OBJS} \
96            ${OBJS-dummy}
97
98 SRCS+= ${OBJS-all:R:S/$/.c/g}
99
100 toplev.o:       toplev.c
101         ${CC} ${CFLAGS} -DTARGET_NAME=\"${GCC_TARGET}\" -c ${.IMPSRC}
102
103 # make sure we don't find .o's in ../cc_tools/
104 CLEANFILES+= ${OBJS-all}
105
106 .include <bsd.lib.mk>