Makefile.inc revision 1.2
1# $NetBSD: Makefile.inc,v 1.2 2010/01/20 11:45:54 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 19libexecdir = /usr/libexec 20includedir = /usr/include 21 22CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}/\" 23CPPFLAGS+= -DINCLUDEDIR=\"${includedir}/\" 24CPPFLAGS+= -Dos_${TARGOS} 25CPPFLAGS+= -Dmach_${TARGMACH} 26CPPFLAGS+= -I${PCC_DIR} 27 28.if exists(${.CURDIR}/../../../Makefile.inc) 29.include "${.CURDIR}/../../../Makefile.inc" 30.endif 31