1# make sure this stays the same as gnu/usr.bin/cc47/Makefile.inc 2GCCSHORTVER= 47 3GCCPOINTVER= 4.7 4GCCSHORTDATE= 20130411 5 6GCCDIR= ${.CURDIR}/../../../../contrib/gcc-${GCCPOINTVER} 7OCCDIR= ${.OBJDIR}/../../../usr.bin/cc${GCCSHORTVER} 8CCDIR= ${.CURDIR}/../../../usr.bin/cc${GCCSHORTVER} 9 10CCVER=gcc${GCCSHORTVER} 11 12TARGET_ARCH?= ${MACHINE_ARCH} 13GCC_CPU?= ${TARGET_ARCH} 14TRAMPSIZE= 10 15.if ${TARGET_ARCH} == "x86_64" 16GCC_CPU= i386 17TRAMPSIZE= 24 18.endif 19 20TARGET_LIBDIR= ${LIBDIR}/${CCVER} 21TARGET_DEBUGLIBDIR= ${LIBDIR}/${CCVER}/debug 22TARGET_PROFLIBDIR= ${LIBDIR}/${CCVER}/profile 23TARGET_SHLIBDIR= ${LIBDIR}/${CCVER} 24 25LIBSUPCPP= ${.OBJDIR}/../libsupc++/libsupc++.a 26 27# for now do not let the use of -flto 28.if ${CFLAGS:M-flto} 29CFLAGS+= -fno-lto 30LDFLAGS+= -flto 31.endif 32 33CFLAGS+= -I${CCDIR}/cc_prep 34CFLAGS+= -I${CCDIR}/cc_prep/config 35CFLAGS+= -I${OCCDIR}/cc_prep 36CFLAGS+= -I${OCCDIR}/cc_tools/tools 37CFLAGS+= -I${GCCDIR}/include 38CFLAGS+= -I${GCCDIR}/gcc 39CFLAGS+= -I${GCCDIR}/gcc/config 40CFLAGS+= -I${GCCDIR}/gcc/config/${GCC_CPU} 41CFLAGS+= -I${CCDIR}/../gmp 42 43# only gcc 4.8 and later has support for -Og 44.if defined(WORLD_CCOPTLEVEL) && ${WORLD_CCOPTLEVEL:Mg} && ${CCVER:Mgcc47} 45WORLD_CCOPTLEVEL:= 1 46.MAKEFLAGS: WORLD_CCOPTLEVEL=1 47.endif 48 49.include "../Makefile.inc" 50