Makefile revision 117429
1# $FreeBSD: head/gnu/usr.bin/cc/cc_int/Makefile 117429 2003-07-11 05:37:23Z kan $ 2 3.include "../Makefile.inc" 4 5.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty 6 7LIB= cc_int 8INTERNALLIB= YES 9 10# dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \ 11# alias.c bitmap.c dwarf2out.c dyn-string.c \ 12SRCS= c-common.c c-dump.c c-format.c c-opts.c \ 13 c-pragma.c c-semantics.c \ 14 caller-save.c calls.c combine.c convert.c cse.c \ 15 dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \ 16 final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \ 17 gtype-desc.c hash.c haifa-sched.c \ 18 integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \ 19 print-rtl.c print-tree.c \ 20 ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \ 21 real.c recog.c reg-stack.c regclass.c \ 22 reload.c reload1.c reorg.c rtl.c rtlanal.c \ 23 sbitmap.c sdbout.c stmt.c stor-layout.c \ 24 toplev.c tracer.c tree.c unroll.c varasm.c version.c xcoffout.c \ 25 alias.c bitmap.c dyn-string.c \ 26 gcse.c genrtl.c profile.c regmove.c varray.c \ 27 attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c 28 29SRCS+= ${GCC_CPU}.c 30 31SRCS+= bb-reorder.c conflict.c ggc-common.c \ 32 ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \ 33 simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c 34 35# insn-* gunk -- headers are built in cc_tools, as they are used by the 36# "build-tools" 37.for F in attrtab emit extract opinit output peep recog 38SRCS+= insn-$F.c 39CLEANFILES+= insn-$F.c 40insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} 41 ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c 42.endfor 43 44# shared between the drivers 45SRCS+= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c mbchar.c concat.c make-temp-file.c underscore.c 46# C_AND_OBJC_OBJS 47#SRCS+= attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \ 48# c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o \ 49# c-objc-common.o 50 51# XXX: shared by cc1, cc1obj & cpp0 52# cc1plus seems to be able to tolerate these here, 53# BUT only if the right .o's are specified in cc1plus/Makefile 54SRCS+= c-lex.c c-typeck.c \ 55 c-errors.o c-pragma.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o 56 57# libbackend 58SRCS+= builtins.c diagnostic.c doloop.c dominance.c et-forest.c \ 59 except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \ 60 stringpool.c c-lex.c langhooks.c hashtable.c \ 61 hooks.c \ 62 cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c 63 64# libcpp 65SRCS+= cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \ 66 cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c 67 68# stuff that makes libiberty now required (2.95) and shouldn't be... 69SRCS+= obstack.c splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c xmemdup.c physmem.c 70CFLAGS+= -DHAVE_CONFIG_H 71 72CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC 73.if defined(TARGET_CPU_DEFAULT) 74CFLAGS+= -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT} 75.endif 76 77UNDERSCORES= 0 78SRCS+= underscore.c 79CLEANFILES+= underscore.c 80underscore.c: Makefile 81 echo '/*WARNING: This file is automatically generated!*/' >${.TARGET} 82 echo "int prepends_underscore = ${UNDERSCORES};" >>${.TARGET} 83 84.include <bsd.lib.mk> 85