]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - gnu/usr.bin/cc/Makefile.inc
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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 GCCLIB= ${.CURDIR}/../../../../contrib/gcclibs
11
12 .include "Makefile.tgt"
13
14 # Machine description.
15 MD_FILE=        ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
16 GCC_TARGET=     ${TARGET_ARCH}-undermydesk-freebsd
17
18 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
19 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
20 #CFLAGS+=       -DWANT_COMPILER_INVARIANTS
21
22 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
23 # to get the proper sizes in limits.h
24 .if defined(LONG_TYPE_SIZE)
25 CFLAGS+=        -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
26 .endif
27
28 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
29 CFLAGS+=        -DCROSS_COMPILE
30 .endif
31
32 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
33 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
34 .endif
35
36 .if exists(${.OBJDIR}/../cc_tools)
37 CFLAGS+=        -I${.OBJDIR}/../cc_tools
38 .endif
39 CFLAGS+=        -I${.CURDIR}/../cc_tools
40 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
41 # correctly.
42 CFLAGS+=        -I${GCCDIR} -I${GCCDIR}/config
43
44 CFLAGS+=        -I${GCCLIB}/include
45 CFLAGS+=        -I${GCCLIB}/libcpp/include
46 CFLAGS+=        -I${GCCLIB}/libdecnumber
47
48 .if exists(${.OBJDIR}/../cc_int)
49 LIBBACKEND=     ${.OBJDIR}/../cc_int/libbackend.a
50 .else
51 LIBBACKEND=     ${.CURDIR}/../cc_int/libbackend.a
52 .endif
53
54 .if exists(${.OBJDIR}/../libiberty)
55 LIBIBERTY=      ${.OBJDIR}/../libiberty/libiberty.a
56 .else
57 LIBIBERTY=      ${.CURDIR}/../libiberty/libiberty.a
58 .endif
59
60 .if exists(${.OBJDIR}/../libcpp)
61 LIBCPP=         ${.OBJDIR}/../libcpp/libcpp.a
62 .else
63 LIBCPP=         ${.CURDIR}/../libcpp/libcpp.a
64 .endif
65
66 .if exists(${.OBJDIR}/../libdecnumber)
67 LIBDECNUMBER=   ${.OBJDIR}/../libdecnumber/libdecnumber.a
68 .else
69 LIBDECNUMBER=   ${.CURDIR}/../libdecnumber/libdecnumber.a
70 .endif
71
72 .endif # !__CC_MAKEFILE_INC__