b2f782612f
_NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different') Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc). Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9. Fixes PR's: PR#17762 PR#25944
21 lines
488 B
Makefile
21 lines
488 B
Makefile
# $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@
|