Makefile.inc revision 1.7
1# $NetBSD: Makefile.inc,v 1.7 2010/02/05 18:41:25 plunky Exp $ 2 3PCC_DIR:=${.PARSEDIR} 4PCC_DIST=${PCC_DIR}/dist/pcc 5PCC_LIBS=${PCC_DIR}/dist/pcc-libs 6 7TARGOS = netbsd 8 9.if ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" 10TARGMACH = mips 11.elif ${MACHINE_ARCH} == "x86_64" 12TARGMACH = amd64 13.else 14TARGMACH = ${MACHINE_ARCH} 15.endif 16 17.if !exists(${PCC_DIST}/arch/${TARGMACH}) 18ERROR!= echo "ERROR: ${TARGMACH} not yet supported - write code!" >&2;echo 19.endif 20 21VERSSTR = PACKAGE_STRING " for ${TARGOS}-${TARGMACH}" 22 23libexecdir = /usr/libexec 24includedir = /usr/include 25 26CPPFLAGS+= -DVERSSTR=${VERSSTR:Q} 27CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}/\" 28CPPFLAGS+= -DINCLUDEDIR=\"${includedir}/\" 29CPPFLAGS+= -Dos_${TARGOS} 30CPPFLAGS+= -Dmach_${TARGMACH} 31CPPFLAGS+= -I${PCC_DIR} 32 33.if exists(${.CURDIR}/../../../Makefile.inc) 34.include "${.CURDIR}/../../../Makefile.inc" 35.endif 36