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