]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/cc/cc_int/Makefile
merge fix for boot-time hang on centos' xen
[FreeBSD/FreeBSD.git] / gnu / usr.bin / cc / cc_int / Makefile
1 # $FreeBSD$
2
3 .include "../Makefile.inc"
4
5 .PATH: ../cc_tools ${GCCDIR}/config/${GCC_CPU} ${GCCDIR}
6
7 LIB=            cc_int
8 INTERNALLIB=
9
10 # Files from libiberty.
11 SRCS=   choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
12         dyn-string.c fibheap.c getpwd.c getruntime.c hashtab.c hex.c \
13         lbasename.c make-temp-file.c md5.c obstack.c partition.c pex-unix.c \
14         physmem.c splay-tree.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
15
16 # Language-independent files.
17 SRCS+=  alias.c bb-reorder.c bitmap.c builtins.c caller-save.c calls.c \
18         cfg.c cfganal.c cfgbuild.c cfgcleanup.c cfglayout.c cfgloop.c \
19         cfgloopanal.c cfgloopmanip.c loop-init.c loop-unswitch.c loop-unroll.c \
20         cfgrtl.c combine.c conflict.c convert.c coverage.c cse.c cselib.c \
21         dbxout.c debug.c df.c diagnostic.c dojump.c doloop.c dominance.c \
22         dwarf2asm.c dwarf2out.c emit-rtl.c except.c explow.c \
23         expmed.c expr.c final.c flow.c fold-const.c function.c gcse.c \
24         genrtl.c ggc-common.c global.c graph.c gtype-desc.c \
25         haifa-sched.c hooks.c ifcvt.c  \
26         integrate.c intl.c jump.c  langhooks.c lcm.c lists.c local-alloc.c \
27         loop.c optabs.c options.c opts.c params.c postreload.c predict.c \
28         print-rtl.c print-tree.c value-prof.c \
29         profile.c ra.c ra-build.c ra-colorize.c ra-debug.c ra-rewrite.c \
30         real.c recog.c reg-stack.c regclass.c regmove.c regrename.c \
31         reload.c reload1.c reorg.c resource.c rtl.c rtlanal.c rtl-error.c \
32         sbitmap.c sched-deps.c sched-ebb.c sched-rgn.c sched-vis.c sdbout.c \
33         sibcall.c simplify-rtx.c sreal.c stmt.c stor-layout.c stringpool.c \
34         targhooks.c timevar.c toplev.c tracer.c tree.c tree-dump.c unroll.c \
35         varasm.c varray.c version.c vmsdbgout.c xcoffout.c alloc-pool.c \
36         et-forest.c cfghooks.c bt-load.c pretty-print.c ggc-page.c web.c
37
38 # Miscellaneous files.
39 SRCS+=  hashtable.c tree-inline.c tree-optimize.c cgraph.c cgraphunit.c
40
41 # Host hooks.
42 SRCS+=  host-default.c
43
44 # C and ObjC files.
45 SRCS+=  attribs.c c-errors.c c-lex.c c-pragma.c c-decl.c c-typeck.c \
46         c-convert.c c-aux-info.c c-common.c c-opts.c c-format.c c-semantics.c \
47         c-incpath.c cppdefault.c c-ppoutput.c c-cppbuiltin.c prefix.c \
48         c-objc-common.c c-dump.c c-pch.c
49
50 # Files shared by cc1plus, cc1 and cc1obj
51 SRCS+=  c-pretty-print.c
52
53 # Machine-dependent files.
54 SRCS+=  ${GCC_CPU}.c
55 .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-c.c)
56 SRCS+=  ${GCC_CPU}-c.c
57 .endif
58
59 # libcpp files.
60 SRCS+=  cpplib.c cpplex.c cppmacro.c cppexp.c cppfiles.c cpptrad.c \
61         cpphash.c cpperror.c cppinit.c cppcharset.c \
62         line-map.c mkdeps.c cpppch.c
63
64 # insn-* gunk -- headers are built in cc_tools, as they are used by the
65 # "build-tools"
66 .for F in attrtab emit extract opinit output peep recog
67 SRCS+=  insn-$F.c
68 CLEANFILES+= insn-$F.c
69 insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE}
70         ${.OBJDIR}/../cc_tools/gen$F ${MD_FILE} > insn-$F.c
71 .endfor
72 .for F in modes
73 SRCS+=  insn-$F.c
74 CLEANFILES+= insn-$F.c
75 insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F
76         ${.OBJDIR}/../cc_tools/gen$F > insn-$F.c
77 .endfor
78
79 CFLAGS+=        -DHAVE_CONFIG_H
80 CFLAGS+=        -DTARGET_NAME=\"${target}\" -DIN_GCC
81
82 .if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN)
83 CFLAGS += -DTARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END
84 .endif
85
86 # c-pch.o needs extra defines. Replicate the rule here rather than
87 # pollute compiler command line for all other files.
88 c-pch.o: c-pch.c
89         ${CC} ${CFLAGS} -DHOST_MACHINE=\"${host}\" \
90                  -DTARGET_MACHINE=\"${target}\" -c ${.IMPSRC}
91
92 .include <bsd.lib.mk>