]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - gnu/usr.bin/cc/Makefile.inc
This commit was generated by cvs2svn to compensate for changes in r169693,
[FreeBSD/FreeBSD.git] / 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 .if ${TARGET_ARCH} == "arm"
15 MD_FILE=        ../cc_tools/arm-diked.md
16 .else
17 MD_FILE=        ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
18 .endif
19 GCC_TARGET=     ${TARGET_ARCH}-undermydesk-freebsd
20
21 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
22 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
23 #CFLAGS+=       -DWANT_COMPILER_INVARIANTS
24
25 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
26 # to get the proper sizes in limits.h
27 .if defined(LONG_TYPE_SIZE)
28 CFLAGS+=        -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
29 .endif
30
31 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
32 CFLAGS+=        -DCROSS_COMPILE
33 .endif
34
35 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
36 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
37 .endif
38
39 .if exists(${.OBJDIR}/../cc_tools)
40 CFLAGS+=        -I${.OBJDIR}/../cc_tools
41 .endif
42 CFLAGS+=        -I${.CURDIR}/../cc_tools
43 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
44 # correctly.
45 CFLAGS+=        -I${GCCDIR} -I${GCCDIR}/config
46
47 .if exists(${.OBJDIR}/../cc_int)
48 LIBCC_INT=      ${.OBJDIR}/../cc_int/libcc_int.a
49 .else
50 LIBCC_INT=      ${.CURDIR}/../cc_int/libcc_int.a
51 .endif
52
53 .endif # !__CC_MAKEFILE_INC__