1 1.14 christos # $NetBSD: Makefile,v 1.14 2018/08/15 14:31:22 christos Exp $ 2 1.1 joerg 3 1.1 joerg HOSTPROGNAME= ${_TOOL_PREFIX}mandoc 4 1.1 joerg HOST_SRCDIR= external/bsd/mdocml/bin/mandoc 5 1.1 joerg 6 1.13 christos .include <bsd.hostinit.mk> 7 1.2 joerg 8 1.2 joerg NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n 9 1.2 joerg NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}" 10 1.2 joerg 11 1.4 joerg HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I. 12 1.14 christos HOST_CPPFLAGS+= -D_OPENBSD_SOURCE 13 1.4 joerg 14 1.4 joerg DPSRCS+= config.h 15 1.4 joerg 16 1.9 christos CLEANFILES+= config.log config.h Makefile.local 17 1.5 joerg 18 1.8 christos config.h: configure 19 1.10 joerg SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure 20 1.2 joerg 21 1.1 joerg .include "${.CURDIR}/../Makefile.host" 22