1 # make sure this stays the same as gnu/usr.bin/cc47/Makefile.inc
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}
15 .if ${TARGET_ARCH} == "x86_64"
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
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}
46 .MAKEFLAGS: WORLD_CCOPTLEVEL=1
49 .include "../Makefile.inc"