Makefile revision 259405
167754Smsmith# $FreeBSD: stable/10/gnu/usr.bin/cc/cc_int/Makefile 259405 2013-12-15 03:47:31Z pfg $ 267754Smsmith 367754Smsmith.include <bsd.own.mk> 467754Smsmith 567754Smsmith.include "../Makefile.inc" 667754Smsmith.include "../Makefile.ver" 767754Smsmith 867754Smsmith.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/config/${GCC_CPU} 967754Smsmith 1067754SmsmithLIB= backend 1167754SmsmithINTERNALLIB= 1267754Smsmith 1367754SmsmithEXTRA_OBJS= 1467754SmsmithGGC= ggc-page.o 1567754Smsmithhost_hook_obj= host-default.o 1667754Smsmith 1767754Smsmith# 1867754Smsmith# Most lists copied verbatim from GCC Makefiles. 1967754Smsmith# 2067754SmsmithOBJS-common = \ 2167754Smsmith double-int.o tree-chrec.o tree-scalar-evolution.o tree-data-ref.o \ 2267754Smsmith tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o \ 2367754Smsmith gimplify.o tree-pretty-print.o tree-into-ssa.o \ 2467754Smsmith tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-uncprop.o \ 2567754Smsmith tree-ssa-dce.o tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o \ 2667754Smsmith tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o \ 2767754Smsmith tree-ssa-alias-warnings.o \ 2867754Smsmith tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o \ 2967754Smsmith tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o \ 3067754Smsmith omp-low.o tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o \ 3167754Smsmith tree-vect-generic.o tree-ssa-loop.o tree-ssa-loop-niter.o \ 3267754Smsmith tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-ssa-threadedge.o \ 3367754Smsmith tree-vectorizer.o tree-vect-analyze.o tree-vect-transform.o \ 3467754Smsmith tree-vect-patterns.o tree-ssa-loop-prefetch.o \ 3567754Smsmith tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-address.o \ 3667754Smsmith tree-ssa-math-opts.o \ 3767754Smsmith tree-ssa-loop-ivopts.o tree-if-conv.o tree-ssa-loop-unswitch.o \ 3867754Smsmith alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o \ 3967754Smsmith cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o \ 4067754Smsmith cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o \ 4167754Smsmith cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o \ 4267754Smsmith dbxout.o ddg.o tree-ssa-loop-ch.o loop-invariant.o tree-ssa-loop-im.o \ 4367754Smsmith debug.o df-core.o df-problems.o df-scan.o dfp.o diagnostic.o dojump.o \ 4467754Smsmith dominance.o loop-doloop.o \ 4567754Smsmith dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o loop-iv.o \ 4667754Smsmith expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o \ 4767754Smsmith genrtl.o ggc-common.o global.o graph.o gtype-desc.o \ 4867754Smsmith haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o \ 4967754Smsmith insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o \ 5067754Smsmith integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o \ 5167754Smsmith mode-switching.o modulo-sched.o optabs.o options.o opts.o opts-common.o \ 5267754Smsmith params.o postreload.o postreload-gcse.o predict.o \ 5367754Smsmith insn-preds.o insn-automata.o pointer-set.o \ 5467754Smsmith print-rtl.o print-tree.o profile.o value-prof.o var-tracking.o \ 5567754Smsmith real.o recog.o reg-stack.o regclass.o regmove.o regrename.o \ 5667754Smsmith reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o \ 5767754Smsmith sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o \ 5867754Smsmith see.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o \ 5967754Smsmith struct-equiv.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o \ 6067754Smsmith varasm.o varray.o vec.o version.o vmsdbgout.o xcoffout.o alloc-pool.o \ 6167754Smsmith et-forest.o cfghooks.o bt-load.o pretty-print.o $(GGC) web.o passes.o \ 6267754Smsmith tree-profile.o rtlhooks.o cfgexpand.o lambda-mat.o \ 6367754Smsmith lambda-trans.o lambda-code.o tree-loop-linear.o tree-ssa-sink.o \ 6467754Smsmith tree-vrp.o tree-stdarg.o tree-cfgcleanup.o tree-ssa-reassoc.o \ 6567754Smsmith tree-ssa-structalias.o tree-object-size.o \ 6667754Smsmith rtl-factoring.o 6767754Smsmith 6867754SmsmithOBJS-archive= $(EXTRA_OBJS) $(host_hook_obj) tree-inline.o \ 6967754Smsmith cgraph.o cgraphunit.o tree-nomudflap.o ipa.o ipa-inline.o \ 7067754Smsmith ipa-utils.o ipa-reference.o ipa-pure-const.o ipa-type-escape.o \ 7167754Smsmith ipa-prop.o ipa-cp.o 7267754Smsmith 7367754SmsmithOBJS-md= ${GCC_CPU}.o 7467754Smsmith.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c) 7567754SmsmithOBJS-md+= ${GCC_CPU}-c.o 7667754Smsmith.endif 7767754Smsmith 7867754Smsmith# Target specific, C specific object file 7967754SmsmithC_TARGET_OBJS= 8067754Smsmith 8167754Smsmith# Language-specific object files for C and Objective C. 8267754SmsmithC_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \ 8367754Smsmith c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \ 8467754Smsmith c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \ 8567754Smsmith c-objc-common.o c-dump.o c-pch.o c-parser.o $(C_TARGET_OBJS) \ 8667754Smsmith c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o 8767754Smsmith 8867754Smsmith# Language-specific object files for C. 8967754SmsmithC_OBJS = c-lang.o stub-objc.o $(C_AND_OBJC_OBJS) 9067754Smsmith 9167754Smsmith# Put objC stub objects in library. objc frontend will override it 9267754Smsmith# Put dummy checksum object in library too. It will be overridden 9367754Smsmith# by each indidual front-end binary as needed. 9467754SmsmithOBJS-dummy= stub-objc.o dummy-checksum.o 9567754Smsmith 9667754SmsmithOBJS-all= ${OBJS-common} ${OBJS-archive} ${OBJS-md} ${C_AND_OBJC_OBJS} \ 9767754Smsmith ${OBJS-dummy} 9867754Smsmith 9967754SmsmithSRCS+= ${OBJS-all:R:S/$/.c/g} 10067754Smsmith 10167754Smsmithtoplev.o: toplev.c 10267754Smsmith ${CC} ${CFLAGS} -DTARGET_NAME=\"${GCC_TARGET}\" -c ${.IMPSRC} 10367754Smsmith 10467754Smsmith# make sure we don't find .o's in ../cc_tools/ 10567754SmsmithCLEANFILES+= ${OBJS-all} 10667754Smsmith 10767754Smsmith.include <bsd.lib.mk> 10867754Smsmith