Temporary switch cc3 to the old stabs debugging format to unbreak gdb5.
[dragonfly.git] / gnu / usr.bin / cc / Makefile.inc
1 # $FreeBSD: src/gnu/usr.bin/cc/Makefile.inc,v 1.49.2.6 2002/11/15 18:18:38 ru Exp $
2 # $DragonFly: src/gnu/usr.bin/cc/Attic/Makefile.inc,v 1.8 2004/03/22 20:57:44 dillon Exp $
3
4 MY_CCVER=gcc2
5 MY_BINUTILS=binutils212
6 BINDIR?=/usr/libexec/gcc2
7 .include "../Makefile.inc"
8
9 # Sometimes this is .include'd several times...
10 .if !defined(__CC_MAKEFILE_INC__)
11 __CC_MAKEFILE_INC__= ${MFILE}
12
13 GCCDIR=         ${.CURDIR}/../../../../contrib/gcc
14
15 TARGET_ARCH?=   ${MACHINE_ARCH}
16
17 # Machine description.
18 MD_FILE=        ${GCCDIR}/config/${TARGET_ARCH}/${TARGET_ARCH}.md
19 target=         ${TARGET_ARCH}-unknown-dragonfly
20
21 # These architectures are Cygnus's default for enabling Haifa.
22 .if ${TARGET_ARCH} == "alpha"
23 USE_EGCS_HAIFA= 1
24 .endif
25
26 version!=       grep version_string ${GCCDIR}/version.c \
27                     | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'
28
29 CFLAGS+=        -DIN_GCC -DHAVE_CONFIG_H
30 CFLAGS+=        -DPREFIX=\"${TOOLS_PREFIX}/usr\"
31 CFLAGS+=        -DPREFIX1=\"${TOOLS_PREFIX}/usr\"
32 CFLAGS+=        -DPREFIX2=\"${USRDATA_PREFIX}/usr\"
33
34 # If building 64-bit longs for the i386, "_LARGE_LONG" should also be defined
35 # to get the proper sizes in limits.h
36 .if defined(LONG_TYPE_SIZE)
37 CFLAGS+=        -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
38 .endif
39
40 .if defined(USE_EGCS_HAIFA)
41 CFLAGS+=        -DHAIFA
42 .endif
43
44 .if ${TARGET_ARCH} != ${MACHINE_ARCH}
45 CFLAGS+=        -DCROSS_COMPILE
46 .endif
47
48 .if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
49 CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
50 .endif
51
52 .if exists(${.OBJDIR}/../cc_tools)
53 CFLAGS+=        -I${.OBJDIR}/../cc_tools
54 .endif
55 CFLAGS+=        -I${.CURDIR}/../cc_tools
56 # This must go after the -I for cc_tools to resolve ambiguities for hash.h
57 # correctly.
58 CFLAGS+=        -I${GCCDIR} -I${GCCDIR}/config
59
60 .if exists(${.OBJDIR}/../cc_int)
61 LIBCC_INT=      ${.OBJDIR}/../cc_int/libcc_int.a
62 .else
63 LIBCC_INT=      ${.CURDIR}/../cc_int/libcc_int.a
64 .endif
65
66 .endif # !__CC_MAKEFILE_INC__