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