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