Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 2010/02/19 23:03:02 joerg Exp $ 2 3HOSTPROGNAME= ${_TOOL_PREFIX}mandoc 4HOST_SRCDIR= external/bsd/mdocml/bin/mandoc 5 6NOMAN= # defined 7 8.include <bsd.own.mk> 9 10NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n 11NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}" 12 13HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I. 14 15DPSRCS+= config.h 16 17config.h: config.h.pre config.h.post 18 rm -f config.log 19 ( cat ${DISTDIR}/config.h.pre; \ 20 echo; \ 21 if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcat.c >> config.log 2>&1; then \ 22 echo '#define HAVE_STRLCAT'; \ 23 rm test-strlcat.o; \ 24 fi; \ 25 if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcpy.c >> config.log 2>&1; then \ 26 echo '#define HAVE_STRLCPY'; \ 27 rm test-strlcpy.o; \ 28 fi; \ 29 echo; \ 30 cat ${DISTDIR}/config.h.post \ 31 ) > $@ 32 33.include "${.CURDIR}/../Makefile.host" 34