Makefile.inc revision 162417
1# $FreeBSD: head/gnu/usr.bin/cc/Makefile.inc 162417 2006-09-18 17:08:32Z imp $
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
9GCCDIR=	${.CURDIR}/../../../../contrib/gcc
10
11.include "Makefile.tgt"
12
13# Machine description.
14.if ${TARGET_ARCH} == "arm"
15MD_FILE=	../cc_tools/arm-diked.md
16.else
17MD_FILE=	${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
18.endif
19target=		${TARGET_ARCH}-undermydesk-freebsd
20
21CFLAGS+=	-DIN_GCC -DHAVE_CONFIG_H
22CFLAGS+=	-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)
28CFLAGS+=	-DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
29.endif
30
31.if ${TARGET_ARCH} != ${MACHINE_ARCH}
32CFLAGS+=	-DCROSS_COMPILE
33.endif
34
35.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
36CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
37.endif
38
39.if exists(${.OBJDIR}/../cc_tools)
40CFLAGS+=	-I${.OBJDIR}/../cc_tools
41.endif
42CFLAGS+=	-I${.CURDIR}/../cc_tools
43# This must go after the -I for cc_tools to resolve ambiguities for hash.h
44# correctly.
45CFLAGS+=	-I${GCCDIR} -I${GCCDIR}/config
46
47.if exists(${.OBJDIR}/../cc_int)
48LIBCC_INT=	${.OBJDIR}/../cc_int/libcc_int.a
49.else
50LIBCC_INT=	${.CURDIR}/../cc_int/libcc_int.a
51.endif
52
53.endif # !__CC_MAKEFILE_INC__
54