gnu/lib: Raise WARNS generally to 1 via Makefile.inc.
[dragonfly.git] / gnu / lib / gcc47 / Makefile.inc
blobca02e110a0b651126623ce1bb88cd7e014f94c69
1 # make sure this stays the same as gnu/usr.bin/cc47/Makefile.inc
2 GCCSHORTVER=    47
3 GCCPOINTVER=    4.7
4 GCCSHORTDATE=   20130411
6 GCCDIR=         ${.CURDIR}/../../../../contrib/gcc-${GCCPOINTVER}
7 OCCDIR=         ${.OBJDIR}/../../../usr.bin/cc${GCCSHORTVER}
8 CCDIR=          ${.CURDIR}/../../../usr.bin/cc${GCCSHORTVER}
10 CCVER=gcc${GCCSHORTVER}
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
20 TARGET_LIBDIR=          ${LIBDIR}/${CCVER}
21 TARGET_DEBUGLIBDIR=     ${LIBDIR}/${CCVER}/debug
22 TARGET_PROFLIBDIR=      ${LIBDIR}/${CCVER}/profile
23 TARGET_SHLIBDIR=        ${LIBDIR}/${CCVER}
25 LIBSUPCPP=              ${.OBJDIR}/../libsupc++/libsupc++.a
27 # for now do not let the use of -flto
28 .if ${CFLAGS:M-flto}
29 CFLAGS+=        -fno-lto
30 LDFLAGS+=       -flto
31 .endif
33 CFLAGS+=        -I${CCDIR}/cc_prep
34 CFLAGS+=        -I${CCDIR}/cc_prep/config
35 CFLAGS+=        -I${OCCDIR}/cc_prep
36 CFLAGS+=        -I${OCCDIR}/cc_tools/tools
37 CFLAGS+=        -I${GCCDIR}/include
38 CFLAGS+=        -I${GCCDIR}/gcc
39 CFLAGS+=        -I${GCCDIR}/gcc/config
40 CFLAGS+=        -I${GCCDIR}/gcc/config/${GCC_CPU}
41 CFLAGS+=        -I${CCDIR}/../gmp
43 # only gcc 4.8 and later has support for -Og
44 .if defined(WORLD_CCOPTLEVEL) && ${WORLD_CCOPTLEVEL:Mg} && ${CCVER:Mgcc47}
45 WORLD_CCOPTLEVEL:=      1
46 .MAKEFLAGS: WORLD_CCOPTLEVEL=1
47 .endif
49 .include "../Makefile.inc"