Initial import from FreeBSD RELENG_4:
[dragonfly.git] / gnu / usr.bin / cc / cc_int / Makefile
1 # $FreeBSD: src/gnu/usr.bin/cc/cc_int/Makefile,v 1.25.2.5 2002/07/19 18:46:23 ru Exp $
2
3 .include "../Makefile.inc"
4
5 .PATH: ../cc_tools ${GCCDIR}/config/${TARGET_ARCH} ${GCCDIR}
6
7 LIB=            cc_int
8 INTERNALLIB=    YES
9
10 SRCS=   c-aux-info.c c-common.c c-convert.c c-iterate.c \
11         c-pragma.c c-typeck.c \
12         caller-save.c calls.c combine.c convert.c cse.c \
13         dbxout.c dwarfout.c emit-rtl.c explow.c expmed.c expr.c \
14         final.c flow.c fold-const.c function.c getpwd.c global.c graph.c \
15         hash.c \
16         integrate.c jump.c lcm.c local-alloc.c loop.c optabs.c \
17         print-rtl.c print-tree.c real.c recog.c reg-stack.c regclass.c \
18         reload.c reload1.c reorg.c rtl.c rtlanal.c \
19         sbitmap.c sdbout.c stmt.c stor-layout.c stupid.c \
20         toplev.c tree.c unroll.c varasm.c version.c xcoffout.c \
21         alias.c bitmap.c dwarf2out.c dyn-string.c except.c \
22         gcse.c genrtl.c profile.c regmove.c varray.c \
23         ${TARGET_ARCH}.c
24 .if defined(USE_EGCS_HAIFA) && ${USE_EGCS_HAIFA} == 1
25 SRCS+=  haifa-sched.c
26 .else
27 SRCS+=  sched.c
28 .endif
29
30 # insn-* gunk -- headers are built in cc_tools, as they are used by the
31 # "build-tools"
32 .for F in attrtab emit extract opinit output peep recog
33 SRCS+=  insn-$F.c
34 CLEANFILES+= insn-$F.c
35 insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
36         ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
37 .endfor
38
39 #       shared between the drivers
40 SRCS+=  multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c
41
42 #       stuff that makes libiberty now required (2.95) and shouldn't be...
43 SRCS+=  obstack.c splay-tree.c
44
45 CFLAGS+=        -DTARGET_NAME=\"${target}\" -DIN_GCC
46
47 .include <bsd.lib.mk>