Hook gcc 5.0 (pre-release) in build, unhook gcc 4.4
[dragonfly.git] / gnu / lib / gcc47 / Makefile.inc
1 # make sure this stays the same as gnu/usr.bin/cc47/Makefile.inc
2 GCCSHORTVER=    47
3 GCCPOINTVER=    4.7
4 GCCSHORTDATE=   20130411
5
6 GCCDIR=         ${.CURDIR}/../../../../contrib/gcc-${GCCPOINTVER}
7 OCCDIR=         ${.OBJDIR}/../../../usr.bin/cc${GCCSHORTVER}
8 CCDIR=          ${.CURDIR}/../../../usr.bin/cc${GCCSHORTVER}
9
10 CCVER=gcc${GCCSHORTVER}
11
12 TARGET_ARCH?=   ${MACHINE_ARCH}
13 GCC_CPU?=       ${TARGET_ARCH}
14 TRAMPSIZE=      10
15 .if ${TARGET_ARCH} == "x86_64"
16 GCC_CPU=        i386
17 TRAMPSIZE=      24
18 .endif
19
20 TARGET_LIBDIR=          ${LIBDIR}/${CCVER}
21 TARGET_DEBUGLIBDIR=     ${LIBDIR}/${CCVER}/debug
22 TARGET_PROFLIBDIR=      ${LIBDIR}/${CCVER}/profile
23 TARGET_SHLIBDIR=        ${LIBDIR}/${CCVER}
24
25 LIBSUPCPP=              ${.OBJDIR}/../libsupc++/libsupc++.a
26
27 CFLAGS+=        -I${CCDIR}/cc_prep
28 CFLAGS+=        -I${CCDIR}/cc_prep/config
29 CFLAGS+=        -I${OCCDIR}/cc_prep
30 CFLAGS+=        -I${OCCDIR}/cc_tools/tools
31 CFLAGS+=        -I${GCCDIR}/include
32 CFLAGS+=        -I${GCCDIR}/gcc
33 CFLAGS+=        -I${GCCDIR}/gcc/config
34 CFLAGS+=        -I${GCCDIR}/gcc/config/${GCC_CPU}
35 CFLAGS+=        -I${CCDIR}/../gmp