Makefile.inc revision 1.6
1# $NetBSD: Makefile.inc,v 1.6 2010/02/05 17:18:31 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.else 12TARGMACH = ${MACHINE_ARCH} 13.endif 14 15.if !exists(${PCC_DIST}/arch/${TARGMACH}) 16ERROR!= echo "ERROR: ${TARGMACH} not yet supported - write code!" >&2;echo 17.endif 18 19VERSSTR = PACKAGE_STRING " for ${TARGOS}-${TARGMACH}" 20 21libexecdir = /usr/libexec 22includedir = /usr/include 23 24CPPFLAGS+= -DVERSSTR=${VERSSTR:Q} 25CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}/\" 26CPPFLAGS+= -DINCLUDEDIR=\"${includedir}/\" 27CPPFLAGS+= -Dos_${TARGOS} 28CPPFLAGS+= -Dmach_${TARGMACH} 29CPPFLAGS+= -I${PCC_DIR} 30 31.if exists(${.CURDIR}/../../../Makefile.inc) 32.include "${.CURDIR}/../../../Makefile.inc" 33.endif 34