]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - 6/gnu/usr.bin/cc/Makefile.inc
Clone Kip's Xen on stable/6 tree so that I can work on improving FreeBSD/amd64
[FreeBSD/FreeBSD.git] / 6 / gnu / usr.bin / cc / Makefile.inc
1 # $FreeBSD$
2
3 .include "../Makefile.inc"
4
5 # Sometimes this is .include'd several times...
6 .if !defined(__CC_MAKEFILE_INC__)
7 __CC_MAKEFILE_INC__= ${MFILE}
8
9 GCCDIR= ${.CURDIR}/../../../../contrib/gcc
10
11 .include "Makefile.tgt"
12
13 # Machine description.
14 MD_FILE=        ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
15 target=         ${TARGET_ARCH}-undermydesk-freebsd
16
17 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
18 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
19 #CFLAGS+=       -DWANT_COMPILER_INVARIANTS
20
21 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
22 # to get the proper sizes in limits.h
23 .if defined(LONG_TYPE_SIZE)
24 CFLAGS+=        -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
25 .endif
26
27 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
28 CFLAGS+=        -DCROSS_COMPILE
29 .endif
30
31 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
32 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
33 .endif
34
35 .if exists(${.OBJDIR}/../cc_tools)
36 CFLAGS+=        -I${.OBJDIR}/../cc_tools
37 .endif
38 CFLAGS+=        -I${.CURDIR}/../cc_tools
39 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
40 # correctly.
41 CFLAGS+=        -I${GCCDIR} -I${GCCDIR}/config
42
43 .if exists(${.OBJDIR}/../cc_int)
44 LIBCC_INT=      ${.OBJDIR}/../cc_int/libcc_int.a
45 .else
46 LIBCC_INT=      ${.CURDIR}/../cc_int/libcc_int.a
47 .endif
48
49 .endif # !__CC_MAKEFILE_INC__