diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 05:27:21 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 05:27:21 +0000 |
commit | 482ec87e2d520becf14d5640e496de11985b1f88 (patch) | |
tree | d38f606f4ee3571f7c56d00ef0cbb35442e1d0d3 /gnu/usr.bin/cc/cc_int | |
parent | 30330da27a0c189d1a6520f06324c22919f0eb0d (diff) | |
download | FreeBSD-src-482ec87e2d520becf14d5640e496de11985b1f88.zip FreeBSD-src-482ec87e2d520becf14d5640e496de11985b1f88.tar.gz |
Bmake glue for GCC 3.4.2-prerelease.
Diffstat (limited to 'gnu/usr.bin/cc/cc_int')
-rw-r--r-- | gnu/usr.bin/cc/cc_int/Makefile | 118 |
1 files changed, 60 insertions, 58 deletions
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile index 9e37575..c98244d 100644 --- a/gnu/usr.bin/cc/cc_int/Makefile +++ b/gnu/usr.bin/cc/cc_int/Makefile @@ -2,38 +2,65 @@ .include "../Makefile.inc" -.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty +.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} LIB= cc_int INTERNALLIB= YES -# dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \ -# alias.c bitmap.c dwarf2out.c dyn-string.c \ -SRCS= c-common.c c-dump.c c-format.c c-opts.c \ - c-pragma.c c-semantics.c \ - caller-save.c calls.c combine.c convert.c cse.c \ - dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \ - final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \ - gtype-desc.c haifa-sched.c \ - integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \ - print-rtl.c print-tree.c \ - ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \ - real.c recog.c reg-stack.c regclass.c \ - reload.c reload1.c reorg.c rtl.c rtlanal.c \ - sbitmap.c sdbout.c stmt.c stor-layout.c \ - toplev.c tracer.c tree.c unroll.c varasm.c xcoffout.c \ - alias.c bitmap.c dyn-string.c \ - genrtl.c profile.c regmove.c varray.c \ - attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c +# Files from libiberty. +SRCS= choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \ + dyn-string.c errors.c fibheap.c getpwd.c getruntime.c hashtab.c \ + hex.c lbasename.c make-temp-file.c md5.c obstack.c partition.c \ + pexecute.c physmem.c splay-tree.c xexit.c xmalloc.c xmemdup.c \ + xstrdup.c xstrerror.c xexit.c +# Language-independent files. +SRCS+= alias.c bb-reorder.c bitmap.c builtins.c caller-save.c calls.c \ + cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c \ + cfgloopanal.c cfgloopmanip.c loop-init.c loop-unswitch.c loop-unroll.c \ + cfgrtl.c combine.c conflict.c convert.c coverage.c cse.c cselib.c \ + dbxout.c debug.c df.c diagnostic.c dojump.c doloop.c dominance.c \ + dwarf2asm.c dwarf2out.c emit-rtl.c except.c explow.c \ + expmed.c expr.c final.c flow.c fold-const.c function.c gcse.c \ + genrtl.c ggc-common.c global.c graph.c gtype-desc.c \ + haifa-sched.c hooks.c ifcvt.c \ + integrate.c intl.c jump.c langhooks.c lcm.c lists.c local-alloc.c \ + loop.c optabs.c options.c opts.c params.c postreload.c predict.c \ + print-rtl.c print-tree.c value-prof.c \ + profile.c ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \ + real.c recog.c reg-stack.c regclass.c regmove.c regrename.c \ + reload.c reload1.c reorg.c resource.c rtl.c rtlanal.c rtl-error.c \ + sbitmap.c sched-deps.c sched-ebb.c sched-rgn.c sched-vis.c sdbout.c \ + sibcall.c simplify-rtx.c sreal.c stmt.c stor-layout.c stringpool.c \ + targhooks.c timevar.c toplev.c tracer.c tree.c tree-dump.c unroll.c \ + varasm.c varray.c version.c vmsdbgout.c xcoffout.c alloc-pool.c \ + et-forest.c cfghooks.c bt-load.c pretty-print.c ggc-page.c web.c + +# Miscellaneous files. +SRCS+= hashtable.c tree-inline.c tree-optimize.c cgraph.c cgraphunit.c + +# Host hooks. +SRCS+= host-default.c + +# C and ObjC files. +SRCS+= attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \ + c-convert.c c-aux-info.c c-common.c c-opts.c c-format.c c-semantics.c \ + c-incpath.c cppdefault.c c-ppoutput.c c-cppbuiltin.c prefix.c \ + c-objc-common.c c-dump.c c-pch.c + +# Files shared by cc1plus, cc1 and cc1obj +SRCS+= c-pretty-print.c + +# Machine-dependent files. SRCS+= ${GCC_CPU}.c .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c) SRCS+= ${GCC_CPU}-c.c .endif -SRCS+= bb-reorder.c conflict.c ggc-common.c \ - ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \ - simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c +# libcpp files. +SRCS+= cpplib.c cpplex.c cppmacro.c cppexp.c cppfiles.c cpptrad.c \ + cpphash.c cpperror.c cppinit.c cppcharset.c \ + line-map.c mkdeps.c cpppch.c # insn-* gunk -- headers are built in cc_tools, as they are used by the # "build-tools" @@ -43,45 +70,20 @@ CLEANFILES+= insn-$F.c insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c .endfor +.for F in modes +SRCS+= insn-$F.c +CLEANFILES+= insn-$F.c +insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F + ${.OBJDIR}/../cc_tools/gen$F > insn-$F.c +.endfor -# shared between the drivers -SRCS+= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c mbchar.c concat.c make-temp-file.c -# C_AND_OBJC_OBJS -#SRCS+= attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \ -# c-convert.c c-aux-info.c c-common.c c-format.c c-semantics.c \ -# c-objc-common.c - -# XXX: shared by cc1, cc1obj & cpp0 -# cc1plus seems to be able to tolerate these here, -# BUT only if the right .o's are specified in cc1plus/Makefile -SRCS+= c-typeck.c \ - c-errors.c c-convert.c c-aux-info.c c-objc-common.c - -# libbackend -SRCS+= builtins.c diagnostic.c doloop.c dominance.c et-forest.c \ - except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \ - stringpool.c c-lex.c langhooks.c hashtable.c \ - hooks.c \ - cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c - -# libcpp -SRCS+= cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \ - cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c - -# stuff that makes libiberty now required (2.95) and shouldn't be... -SRCS+= splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c xmemdup.c physmem.c CFLAGS+= -DHAVE_CONFIG_H - CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC -.if defined(TARGET_CPU_DEFAULT) -CFLAGS+= -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT} -.endif -UNDERSCORES= 0 -SRCS+= underscore.c -CLEANFILES+= underscore.c -underscore.c: Makefile - echo '/*WARNING: This file is automatically generated!*/' >${.TARGET} - echo "int prepends_underscore = ${UNDERSCORES};" >>${.TARGET} +# c-pch.o needs extra defines. Replicate the rule here rather than +# pollute compiler command line for all other files. +c-pch.o: c-pch.c + ${CC} ${CFLAGS} -DHOST_MACHINE=\"${host}\" \ + -DTARGET_MACHINE=\"${target}\" -c ${.IMPSRC} .include <bsd.lib.mk> |