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