Both cc and cc3 were built using CCVER=$(CCVER) for certain compiler 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.3 2004/01/24 20:03:27 joerg Exp $
3
4 BINDIR?=/usr/bin/gcc3
5 MY_CCVER=gcc3
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
12 GCCDIR= ${.CURDIR}/../../../../contrib/gcc3
13
14 .include "Makefile.tgt"
15
16 # Machine description.
17 MD_FILE=        ${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}.md
18 target=         ${TARGET_ARCH}-undermydesk-freebsd
19
20 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
21 CFLAGS+=        -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)
27 CFLAGS+=        -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
28 .endif
29
30 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
31 CFLAGS+=        -DCROSS_COMPILE
32 .endif
33
34 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
35 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
36 .endif
37
38 .if exists(${.OBJDIR}/../cc_tools)
39 CFLAGS+=        -I${.OBJDIR}/../cc_tools
40 .endif
41 CFLAGS+=        -I${.CURDIR}/../cc_tools
42 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
43 # correctly.
44 CFLAGS+=        -I${GCCDIR} -I${GCCDIR}/config
45
46 .if exists(${.OBJDIR}/../cc_int)
47 LIBCC_INT=      ${.OBJDIR}/../cc_int/libcc_int.a
48 .else
49 LIBCC_INT=      ${.CURDIR}/../cc_int/libcc_int.a
50 .endif
51
52 .endif # !__CC_MAKEFILE_INC__