1 # $NetBSD: Makefile.inc,v 1.1 2006/05/10 22:48:11 mrg Exp $
5 TOP= ${NETBSDSRCDIR}/gnu
8 GCCARCH= ${.CURDIR}/../arch/${MACHINE_ARCH}
10 CPPFLAGS+= -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE
11 HOST_CPPFLAGS+= -I${.CURDIR}/..
13 .if ${USETOOLS} == "yes"
14 COMPATOBJDIR!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
15 NBCOMPATLIB= -L${COMPATOBJDIR} -lnbcompat
19 BUILD_PREFIX= ${C_BUILD_PREFIX}
21 LIBIBERTYOBJ!= cd ${.CURDIR}/../libiberty && ${PRINTOBJDIR}
22 FRONTENDOBJ!= cd ${.CURDIR}/../frontend && ${PRINTOBJDIR}
23 BACKENDOBJ!= cd ${.CURDIR}/../backend && ${PRINTOBJDIR}
24 LIBCPPOBJ!= cd ${.CURDIR}/../libcpp && ${PRINTOBJDIR}
26 HOSTLIBIBERTYOBJ!= cd ${.CURDIR}/../host-libiberty && ${PRINTOBJDIR}
27 HOSTLIBIBERTY= ${HOSTLIBIBERTYOBJ}/libiberty/libiberty.a
29 BASEVER!= cat ${GNUHOSTDIST}/gcc/BASE-VER
30 DEVPHASE!= cat ${GNUHOSTDIST}/gcc/DEV-PHASE
31 DATESTAMP!= cat ${GNUHOSTDIST}/gcc/DATESTAMP
33 BASEVERSTR= "\"$(BASEVER)\""
35 DEVPHASESTR= "\" $(DEVPHASE)\""
40 DATESTAMPSTR= "\" $(DATESTAMP)\""
45 VER_CPPFLAGS= -DBASEVER=${BASEVERSTR} \
46 -DDATESTAMP=${DATESTAMPSTR} \
47 -DDEVPHASE=${DEVPHASESTR}
48 CPPFLAGS.version.c= ${VER_CPPFLAGS}
50 .include "${GCCARCH}/defs.mk"
53 .if ${G_ENABLE_SHARED} == "yes" && ${G_SHLIB_LINK} != ""
54 CPPFLAGS+= -DENABLE_SHARED_LIBGCC
57 .if empty(G_SHLIB_MULTILIB)
58 CPPFLAGS+= -DNO_SHARED_LIBGCC_MULTILIB