2010-01-20 14:45:54 +03:00
|
|
|
# $NetBSD: Makefile.inc,v 1.2 2010/01/20 11:45:54 plunky Exp $
|
2008-08-24 09:47:05 +04:00
|
|
|
|
2010-01-20 14:45:54 +03:00
|
|
|
PCC_DIR:=${.PARSEDIR}
|
|
|
|
PCC_DIST=${PCC_DIR}/dist/pcc
|
|
|
|
PCC_LIBS=${PCC_DIR}/dist/pcc-libs
|
2008-08-24 09:47:05 +04:00
|
|
|
|
|
|
|
TARGOS = netbsd
|
2010-01-20 14:45:54 +03:00
|
|
|
|
2008-08-24 09:47:05 +04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
TARGMACH = i386
|
|
|
|
.elif ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb"
|
|
|
|
TARGMACH = mips
|
|
|
|
.elif ${MACHINE_ARCH} == "vax"
|
|
|
|
TARGMACH = vax
|
|
|
|
.else
|
|
|
|
ERROR!= echo "ERROR: ${MACHINE_ARCH} not yet supported - write code!" >&2;echo
|
|
|
|
.endif
|
|
|
|
|
|
|
|
libexecdir = /usr/libexec
|
|
|
|
includedir = /usr/include
|
|
|
|
|
2010-01-20 14:45:54 +03:00
|
|
|
CPPFLAGS+= -DLIBEXECDIR=\"${libexecdir}/\"
|
|
|
|
CPPFLAGS+= -DINCLUDEDIR=\"${includedir}/\"
|
|
|
|
CPPFLAGS+= -Dos_${TARGOS}
|
|
|
|
CPPFLAGS+= -Dmach_${TARGMACH}
|
|
|
|
CPPFLAGS+= -I${PCC_DIR}
|
2008-08-24 09:47:05 +04:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../../../Makefile.inc)
|
|
|
|
.include "${.CURDIR}/../../../Makefile.inc"
|
|
|
|
.endif
|