1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1999-08-16 04:10:48 +00:00
|
|
|
|
1996-09-19 15:53:53 +00:00
|
|
|
.include "../Makefile.inc"
|
1994-08-02 20:15:59 +00:00
|
|
|
|
2002-05-10 08:54:50 +00:00
|
|
|
.PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR} ${GCCDIR}/../libiberty
|
1999-04-04 16:36:35 +00:00
|
|
|
|
2000-01-24 08:44:30 +00:00
|
|
|
LIB= cc_int
|
2002-05-13 11:24:03 +00:00
|
|
|
INTERNALLIB= YES
|
2000-01-24 08:44:30 +00:00
|
|
|
|
2001-12-18 03:13:22 +00:00
|
|
|
# dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
|
|
|
|
# alias.c bitmap.c dwarf2out.c dyn-string.c \
|
2002-04-06 23:18:01 +00:00
|
|
|
SRCS= c-common.c c-format.c \
|
2001-12-18 03:13:22 +00:00
|
|
|
c-pragma.c c-semantics.c \
|
2002-04-06 23:18:01 +00:00
|
|
|
\
|
1996-09-19 15:53:53 +00:00
|
|
|
caller-save.c calls.c combine.c convert.c cse.c \
|
2001-12-18 03:13:22 +00:00
|
|
|
dbxout.c dwarfout.c dwarf2out.c dwarf2asm.c emit-rtl.c explow.c expmed.c expr.c \
|
1999-11-15 04:16:19 +00:00
|
|
|
final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
|
2001-12-18 03:13:22 +00:00
|
|
|
hash.c haifa-sched.c \
|
1999-11-15 04:16:19 +00:00
|
|
|
integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
|
1996-09-19 15:53:53 +00:00
|
|
|
print-rtl.c print-tree.c real.c recog.c reg-stack.c regclass.c \
|
|
|
|
reload.c reload1.c reorg.c rtl.c rtlanal.c \
|
2001-12-18 03:13:22 +00:00
|
|
|
sbitmap.c sdbout.c stmt.c stor-layout.c \
|
1996-09-19 15:53:53 +00:00
|
|
|
toplev.c tree.c unroll.c varasm.c version.c xcoffout.c \
|
2001-12-18 03:13:22 +00:00
|
|
|
alias.c bitmap.c dyn-string.c \
|
1999-04-04 16:36:35 +00:00
|
|
|
gcse.c genrtl.c profile.c regmove.c varray.c \
|
2002-04-06 23:18:01 +00:00
|
|
|
attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c \
|
|
|
|
${GCC_CPU}.c
|
2001-12-18 03:13:22 +00:00
|
|
|
|
|
|
|
SRCS+= bb-reorder.c conflict.c ggc-common.c \
|
|
|
|
ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \
|
2002-04-06 23:18:01 +00:00
|
|
|
simplify-rtx.c ssa.c timevar.c ssa-dce.c ssa-ccp.c df.c fibheap.c
|
1996-09-19 15:53:53 +00:00
|
|
|
|
2002-03-02 08:53:36 +00:00
|
|
|
# insn-* gunk -- headers are built in cc_tools, as they are used by the
|
|
|
|
# "build-tools"
|
|
|
|
.for F in attrtab emit extract opinit output peep recog
|
|
|
|
SRCS+= insn-$F.c
|
|
|
|
CLEANFILES+= insn-$F.c
|
|
|
|
insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
|
|
|
|
${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
|
|
|
|
.endfor
|
|
|
|
|
2000-01-24 20:12:05 +00:00
|
|
|
# shared between the drivers
|
2002-04-06 23:18:01 +00:00
|
|
|
SRCS+= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c mbchar.c concat.c make-temp-file.c underscore.c
|
|
|
|
# C_AND_OBJC_OBJS
|
|
|
|
#SRCS+= attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \
|
|
|
|
# c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o \
|
|
|
|
# c-objc-common.o
|
|
|
|
|
|
|
|
# XXX: shared by cc1, cc1obj & cpp0
|
|
|
|
# cc1plus seems to be able to tolerate these here,
|
|
|
|
# BUT only if the right .o's are specified in cc1plus/Makefile
|
|
|
|
SRCS+= c-lex.c c-typeck.c \
|
|
|
|
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
|
2001-12-18 03:13:22 +00:00
|
|
|
|
|
|
|
# libbackend
|
2002-04-06 23:18:01 +00:00
|
|
|
SRCS+= 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 \
|
|
|
|
stringpool.c c-lex.c langhooks.c hashtable.c \
|
|
|
|
hooks.c \
|
|
|
|
cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c cfgrtl.c
|
2001-12-18 03:13:22 +00:00
|
|
|
|
|
|
|
# libcpp
|
|
|
|
SRCS+= cppdefault.c cpperror.c cppexp.c cppfiles.c cppinit.c cpphash.c \
|
2002-04-06 23:18:01 +00:00
|
|
|
cpplex.c cpplib.c cppmacro.c mkdeps.c line-map.c
|
2000-01-24 20:12:05 +00:00
|
|
|
|
1999-11-15 04:16:19 +00:00
|
|
|
# stuff that makes libiberty now required (2.95) and shouldn't be...
|
2002-04-06 23:18:01 +00:00
|
|
|
SRCS+= obstack.c splay-tree.c hashtab.c partition.c lbasename.c md5.c hex.c getopt.c getopt1.c
|
2001-12-18 03:13:22 +00:00
|
|
|
CFLAGS+= -DHAVE_CONFIG_H
|
1999-11-15 04:16:19 +00:00
|
|
|
|
2000-01-24 20:12:05 +00:00
|
|
|
CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC
|
2002-04-06 23:18:01 +00:00
|
|
|
.if defined(TARGET_CPU_DEFAULT)
|
|
|
|
CFLAGS+= -DTARGET_CPU_DEFAULT=${TARGET_CPU_DEFAULT}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
UNDERSCORES= 0
|
|
|
|
SRCS+= underscore.c
|
|
|
|
CLEANFILES+= underscore.c
|
|
|
|
underscore.c: Makefile
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >${.TARGET}
|
|
|
|
echo "int prepends_underscore = ${UNDERSCORES};" >>${.TARGET}
|
1999-04-04 16:36:35 +00:00
|
|
|
|
1994-08-02 20:15:59 +00:00
|
|
|
.include <bsd.lib.mk>
|