1204044Skensmith# $FreeBSD$ 2204044Skensmith 3204044Skensmith.include "../Makefile.inc" 4204044Skensmith.include "../Makefile.ver" 5204044Skensmith 6264922Sgjb.PATH: ../cc_tools ${GCCDIR} ${GCCDIR}/config/${GCC_CPU} 7204044Skensmith 8204044SkensmithLIB= backend 9204044SkensmithINTERNALLIB= 10204044Skensmith 11204044SkensmithEXTRA_OBJS= 12204044SkensmithGGC= ggc-page.o 13204044Skensmithhost_hook_obj= host-default.o 14204044Skensmith 15204044Skensmith# 16204044Skensmith# Most lists copied verbatim from GCC Makefiles. 17264933Sgjb# 18264933SgjbOBJS-common = \ 19204044Skensmith double-int.o tree-chrec.o tree-scalar-evolution.o tree-data-ref.o \ 20204044Skensmith tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o tree-optimize.o tree-gimple.o \ 21204044Skensmith gimplify.o tree-pretty-print.o tree-into-ssa.o \ 22264933Sgjb tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-uncprop.o \ 23264933Sgjb tree-ssa-dce.o tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o \ 24204044Skensmith tree-ssa-pre.o tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o \ 25204044Skensmith tree-ssa-alias-warnings.o \ 26204044Skensmith tree-ssa-phiopt.o tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o \ 27264933Sgjb tree-ssa-dom.o domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o \ 28264933Sgjb omp-low.o tree-phinodes.o tree-ssanames.o tree-sra.o tree-complex.o \ 29204044Skensmith tree-vect-generic.o tree-ssa-loop.o tree-ssa-loop-niter.o \ 30204044Skensmith tree-ssa-loop-manip.o tree-ssa-threadupdate.o tree-ssa-threadedge.o \ 31264922Sgjb tree-vectorizer.o tree-vect-analyze.o tree-vect-transform.o \ 32283307Sgjb tree-vect-patterns.o tree-ssa-loop-prefetch.o \ 33204044Skensmith tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-address.o \ 34264933Sgjb tree-ssa-math-opts.o \ 35264933Sgjb tree-ssa-loop-ivopts.o tree-if-conv.o tree-ssa-loop-unswitch.o \ 36204044Skensmith alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o \ 37219856Snwhitehorn cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o \ 38204044Skensmith cfgloopanal.o cfgloopmanip.o loop-init.o loop-unswitch.o loop-unroll.o \ 39283307Sgjb cfgrtl.o combine.o conflict.o convert.o coverage.o cse.o cselib.o \ 40283307Sgjb dbxout.o ddg.o tree-ssa-loop-ch.o loop-invariant.o tree-ssa-loop-im.o \ 41204044Skensmith debug.o df-core.o df-problems.o df-scan.o dfp.o diagnostic.o dojump.o \ 42 dominance.o loop-doloop.o \ 43 dwarf2asm.o dwarf2out.o emit-rtl.o except.o explow.o loop-iv.o \ 44 expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o \ 45 genrtl.o ggc-common.o global.o graph.o gtype-desc.o \ 46 haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o \ 47 insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o \ 48 integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o \ 49 mode-switching.o modulo-sched.o optabs.o options.o opts.o opts-common.o \ 50 params.o postreload.o postreload-gcse.o predict.o \ 51 insn-preds.o insn-automata.o pointer-set.o \ 52 print-rtl.o print-tree.o profile.o value-prof.o var-tracking.o \ 53 real.o recog.o reg-stack.o regclass.o regmove.o regrename.o \ 54 reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o \ 55 sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o \ 56 see.o simplify-rtx.o sreal.o stmt.o stor-layout.o stringpool.o \ 57 struct-equiv.o targhooks.o timevar.o toplev.o tracer.o tree.o tree-dump.o \ 58 varasm.o varray.o vec.o version.o vmsdbgout.o xcoffout.o alloc-pool.o \ 59 et-forest.o cfghooks.o bt-load.o pretty-print.o $(GGC) web.o passes.o \ 60 tree-profile.o rtlhooks.o cfgexpand.o lambda-mat.o \ 61 lambda-trans.o lambda-code.o tree-loop-linear.o tree-ssa-sink.o \ 62 tree-vrp.o tree-stdarg.o tree-cfgcleanup.o tree-ssa-reassoc.o \ 63 tree-ssa-structalias.o tree-object-size.o \ 64 rtl-factoring.o 65 66OBJS-archive= $(EXTRA_OBJS) $(host_hook_obj) tree-inline.o \ 67 cgraph.o cgraphunit.o tree-nomudflap.o ipa.o ipa-inline.o \ 68 ipa-utils.o ipa-reference.o ipa-pure-const.o ipa-type-escape.o \ 69 ipa-prop.o ipa-cp.o 70 71OBJS-md= ${GCC_CPU}.o 72.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c) 73OBJS-md+= ${GCC_CPU}-c.o 74.endif 75 76# Target specific, C specific object file 77C_TARGET_OBJS= 78 79# Language-specific object files for C and Objective C. 80C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \ 81 c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \ 82 c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \ 83 c-objc-common.o c-dump.o c-pch.o c-parser.o $(C_TARGET_OBJS) \ 84 c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o 85 86# Language-specific object files for C. 87C_OBJS = c-lang.o stub-objc.o $(C_AND_OBJC_OBJS) 88 89# Put objC stub objects in library. objc frontend will override it 90# Put dummy checksum object in library too. It will be overridden 91# by each indidual front-end binary as needed. 92OBJS-dummy= stub-objc.o dummy-checksum.o 93 94OBJS-all= ${OBJS-common} ${OBJS-archive} ${OBJS-md} ${C_AND_OBJC_OBJS} \ 95 ${OBJS-dummy} 96 97SRCS+= ${OBJS-all:R:S/$/.c/g} 98 99toplev.o: toplev.c 100 ${CC} ${CFLAGS} -DTARGET_NAME=\"${GCC_TARGET}\" -c ${.IMPSRC} 101 102.include <bsd.lib.mk> 103