1 # $NetBSD: Makefile,v 1.5 2010/02/20 13:43:31 joerg Exp $
3 HOSTPROGNAME
= ${_TOOL_PREFIX}mandoc
4 HOST_SRCDIR
= external
/bsd
/mdocml
/bin
/mandoc
11 NETBSD_MINOR
!= ${HOST_SH} ${NETBSDSRCDIR}/sys
/conf
/osrelease.sh
-n
12 NETBSD_OSNAME
= "NetBSD ${NETBSD_MINOR}"
14 HOST_CPPFLAGS
+= -DOSNAME
=${NETBSD_OSNAME
:Q
} -DHAVE_CONFIG_H
-I.
18 CLEANFILES
+= config.log config.h
20 config.h
: config.h.pre config.h.post
22 ( cat
${DISTDIR}/config.h.pre
; \
24 if
$(CC
) $(CFLAGS
) -Werror
-c
${DISTDIR}/test-strlcat.c
>> config.log
2>&1; then \
25 echo
'#define HAVE_STRLCAT'; \
28 if
$(CC
) $(CFLAGS
) -Werror
-c
${DISTDIR}/test-strlcpy.c
>> config.log
2>&1; then \
29 echo
'#define HAVE_STRLCPY'; \
33 cat
${DISTDIR}/config.h.post \
36 .
include "${.CURDIR}/../Makefile.host"