#	$NetBSD: defs.mk.in,v 1.9 2004/06/20 22:20:15 jmc Exp $

COMPATOBJ:=	${.PARSEDIR}
HOSTEXEEXT=	@EXEEXT@

HOST_BSHELL=	@BSHELL@

BUILD_OSTYPE!=  uname -s

# Disable use of pre-compiled headers on Darwin.
.if ${BUILD_OSTYPE} == "Darwin"
HOST_CPPFLAGS+=	-no-cpp-precomp
.endif

HOST_CPPFLAGS+=	-I${COMPATOBJ} -I${COMPATOBJ}/include \
		-I${.CURDIR}/../compat -DHAVE_NBTOOL_CONFIG_H=1 \
		-D_FILE_OFFSET_BITS=64

DPADD+=		${COMPATOBJ}/libnbcompat.a
LDADD+=		-L${COMPATOBJ} -lnbcompat @LIBS@
