Makefile.inc revision 1.3
1# $NetBSD: Makefile.inc,v 1.3 2010/02/03 22:13:13 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} == "i386" 10TARGMACH = i386 11.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" 12TARGMACH = mips 13.elif ${MACHINE_ARCH} == "vax" 14TARGMACH = vax 15.else 16ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo 17.endif 18 19VERSSTR = PACKAGE_STRING PACKAGE_CHECKOUT "for ${HOST_OSTYPE}" 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