1 # $FreeBSD: src/gnu/usr.bin/cc/cc_int/Makefile,v 1.39 2004/01/12 22:02:31 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/cc3/cc_int/Attic/Makefile,v 1.5 2004/03/05 21:38:44 joerg Exp $
4 .include "../Makefile.inc"
6 CFLAGS+= -I${.CURDIR}/../config
8 .PATH: ../cc_tools ${GCCDIR}/gcc/config/${GCC_CPU} ${GCCDIR}/gcc ${GCCDIR}/libiberty
13 # dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
14 # alias.c bitmap.c dwarf2out.c dyn-string.c \
15 SRCS= c-common.c c-dump.c c-format.c c-opts.c \
16 c-pragma.c c-semantics.c \
17 caller-save.c calls.c combine.c convert.c cse.c \
18 dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \
19 final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
20 gtype-desc.c haifa-sched.c \
21 integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
22 print-rtl.c print-tree.c \
23 ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \
24 real.c recog.c reg-stack.c regclass.c \
25 reload.c reload1.c reorg.c rtl.c rtlanal.c \
26 sbitmap.c sdbout.c stmt.c stor-layout.c \
27 toplev.c tracer.c tree.c unroll.c varasm.c xcoffout.c \
28 alias.c bitmap.c dyn-string.c \
29 genrtl.c profile.c regmove.c varray.c \
30 attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c
33 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c)
37 SRCS+= bb-reorder.c conflict.c ggc-common.c \
38 ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
39 simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c
41 # insn-* gunk -- headers are built in cc_tools, as they are used by the
43 .for F in attrtab emit extract opinit output peep recog
45 CLEANFILES+= insn-$F.c
46 insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
47 ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
50 # shared between the drivers
51 SRCS+= multilib.h choose-temp.c obstack.c prefix.c pexecute.c \
52 version_local.c mbchar.c concat.c make-temp-file.c
54 #SRCS+= attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \
55 # c-convert.c c-aux-info.c c-common.c c-format.c c-semantics.c \
58 # XXX: shared by cc1, cc1obj & cpp0
59 # cc1plus seems to be able to tolerate these here,
60 # BUT only if the right .o's are specified in cc1plus/Makefile
62 c-errors.c c-convert.c c-aux-info.c c-objc-common.c
65 SRCS+= builtins.c diagnostic.c doloop.c dominance.c et-forest.c \
66 except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \
67 stringpool.c c-lex.c langhooks.c hashtable.c \
69 cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c
72 SRCS+= cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \
73 cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c
75 # stuff that makes libiberty now required (2.95) and shouldn't be...
76 SRCS+= splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c xmemdup.c physmem.c
77 CFLAGS+= -DHAVE_CONFIG_H
79 CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC
80 .if defined(TARGET_CPU_DEFAULT)
81 CFLAGS+= -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT}
86 CLEANFILES+= underscore.c
87 underscore.c: Makefile
88 echo '/*WARNING: This file is automatically generated!*/' >${.TARGET}
89 echo "int prepends_underscore = ${UNDERSCORES};" >>${.TARGET}
91 CONTRIBDIR= ${GCCDIR}/gcc
93 PATCHES!= echo ${.CURDIR}/patches/*.patch
95 SRCS+= ${PATCHES} protector.c