Makefile revision 124443
1# $FreeBSD: head/gnu/usr.bin/cc/cc_int/Makefile 124443 2004-01-12 20:08:20Z 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-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 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 xcoffout.c \
25	alias.c bitmap.c dyn-string.c \
26	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.if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c)
31SRCS+=	${GCC_CPU}-c.c
32.endif
33
34SRCS+=	bb-reorder.c conflict.c ggc-common.c \
35	ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
36	simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c
37
38# insn-* gunk -- headers are built in cc_tools, as they are used by the
39# "build-tools"
40.for F in attrtab emit extract opinit output peep recog
41SRCS+=	insn-$F.c
42CLEANFILES+= insn-$F.c
43insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
44	${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
45.endfor
46
47#	shared between the drivers
48SRCS+=	multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c mbchar.c concat.c make-temp-file.c
49#	C_AND_OBJC_OBJS
50#SRCS+=	attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \
51#	c-convert.c c-aux-info.c c-common.c c-format.c c-semantics.c \
52#	c-objc-common.c
53
54#	XXX: shared by cc1, cc1obj & cpp0
55#	cc1plus seems to be able to tolerate these here,
56#	BUT only if the right .o's are specified in cc1plus/Makefile
57SRCS+=	c-typeck.c \
58		c-errors.c c-pragma.c c-convert.c c-aux-info.c c-common.c c-format.c c-semantics.c c-objc-common.c
59
60#	libbackend
61SRCS+=	builtins.c diagnostic.c doloop.c dominance.c et-forest.c \
62	except.c gcse.c params.c sched-deps.c sched-vis.c sched-rgn.c sched-ebb.c \
63	stringpool.c c-lex.c langhooks.c hashtable.c \
64	hooks.c \
65	cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c
66
67#	libcpp
68SRCS+=	cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \
69	cpplex.c cpplib.c cppmacro.c cppmain.c cpptrad.c mkdeps.c line-map.c
70
71#	stuff that makes libiberty now required (2.95) and shouldn't be...
72SRCS+=	splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c xmemdup.c physmem.c
73CFLAGS+=	-DHAVE_CONFIG_H
74
75CFLAGS+=	-DTARGET_NAME=\"${target}\" -DIN_GCC
76.if defined(TARGET_CPU_DEFAULT)
77CFLAGS+=	-DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT}
78.endif
79
80UNDERSCORES=	0
81SRCS+=	underscore.c
82CLEANFILES+=	underscore.c
83underscore.c: Makefile
84	echo '/*WARNING: This file is automatically generated!*/' >${.TARGET}
85	echo "int prepends_underscore = ${UNDERSCORES};"	  >>${.TARGET}
86
87.include <bsd.lib.mk>
88