Expand PMF_FN_* macros.
[netbsd-mini2440.git] / gnu / usr.bin / gcc4 / Makefile.inc
blob29ac647be8636d86aa1ed65a510d93d0345ea40c
1 #       $NetBSD: Makefile.inc,v 1.1 2006/05/10 22:48:11 mrg Exp $
3 .include <bsd.own.mk>
5 TOP=            ${NETBSDSRCDIR}/gnu
6 DIST=           ${TOP}/dist/gcc4
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
16 .endif
18 GNUHOSTDIST=    ${DIST}
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)\""
34 .if !empty(DEVPHASE)
35 DEVPHASESTR=            "\" $(DEVPHASE)\""
36 .else
37 DEVPHASESTR=            "\"\""
38 .endif
39 .if !empty(DEVPHASE)
40 DATESTAMPSTR=           "\" $(DATESTAMP)\""
41 .else
42 DATESTAMPSTR=           "\"\""
43 .endif
45 VER_CPPFLAGS=           -DBASEVER=${BASEVERSTR} \
46                         -DDATESTAMP=${DATESTAMPSTR} \
47                         -DDEVPHASE=${DEVPHASESTR}
48 CPPFLAGS.version.c=             ${VER_CPPFLAGS}
50 .include "${GCCARCH}/defs.mk"
52 .if ${MKPIC} != "no"
53 .if ${G_ENABLE_SHARED} == "yes" && ${G_SHLIB_LINK} != ""
54 CPPFLAGS+=      -DENABLE_SHARED_LIBGCC
55 .endif
57 .if empty(G_SHLIB_MULTILIB)
58 CPPFLAGS+=      -DNO_SHARED_LIBGCC_MULTILIB
59 .endif
60 .endif