binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / Makefile.inc
CommitLineData
74fbd2f0 1# $FreeBSD: src/gnu/usr.bin/cc/Makefile.inc,v 1.63 2002/06/04 19:45:08 obrien Exp $
17030342 2# $DragonFly: src/gnu/usr.bin/cc3/Attic/Makefile.inc,v 1.4 2004/02/02 05:43:12 dillon Exp $
74fbd2f0 3
17030342 4BINDIR?=/usr/libexec/gcc3
d998769c 5MY_CCVER=gcc3
74fbd2f0
DR
6.include "../Makefile.inc"
7
8# Sometimes this is .include'd several times...
9.if !defined(__CC_MAKEFILE_INC__)
10__CC_MAKEFILE_INC__= ${MFILE}
11
12GCCDIR= ${.CURDIR}/../../../../contrib/gcc3
13
14.include "Makefile.tgt"
15
16# Machine description.
17MD_FILE= ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
18target= ${TARGET_ARCH}-undermydesk-freebsd
19
20CFLAGS+= -DIN_GCC -DHAVE_CONFIG_H
21CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}/usr\"
22#CFLAGS+= -DWANT_COMPILER_INVARIANTS
23
24# If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
25# to get the proper sizes in limits.h
26.if defined(LONG_TYPE_SIZE)
27CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
28.endif
29
30.if ${TARGET_ARCH} != ${MACHINE_ARCH}
31CFLAGS+= -DCROSS_COMPILE
32.endif
33
34.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
35CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
36.endif
37
38.if exists(${.OBJDIR}/../cc_tools)
39CFLAGS+= -I${.OBJDIR}/../cc_tools
40.endif
41CFLAGS+= -I${.CURDIR}/../cc_tools
42# This must go after the -I for cc_tools to resolve ambiguities for hash.h
43# correctly.
44CFLAGS+= -I${GCCDIR} -I${GCCDIR}/config
45
46.if exists(${.OBJDIR}/../cc_int)
47LIBCC_INT= ${.OBJDIR}/../cc_int/libcc_int.a
48.else
49LIBCC_INT= ${.CURDIR}/../cc_int/libcc_int.a
50.endif
51
52.endif # !__CC_MAKEFILE_INC__