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