2018-08-15 17:31:22 +03:00
|
|
|
# $NetBSD: Makefile,v 1.14 2018/08/15 14:31:22 christos Exp $
|
2009-10-21 22:04:52 +04:00
|
|
|
|
|
|
|
HOSTPROGNAME= ${_TOOL_PREFIX}mandoc
|
|
|
|
HOST_SRCDIR= external/bsd/mdocml/bin/mandoc
|
|
|
|
|
2018-05-01 22:59:42 +03:00
|
|
|
.include <bsd.hostinit.mk>
|
2009-10-27 00:17:19 +03:00
|
|
|
|
|
|
|
NETBSD_MINOR!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n
|
|
|
|
NETBSD_OSNAME= "NetBSD ${NETBSD_MINOR}"
|
|
|
|
|
2010-02-20 02:03:02 +03:00
|
|
|
HOST_CPPFLAGS+= -DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I.
|
2018-08-15 17:31:22 +03:00
|
|
|
HOST_CPPFLAGS+= -D_OPENBSD_SOURCE
|
2010-02-20 02:03:02 +03:00
|
|
|
|
|
|
|
DPSRCS+= config.h
|
|
|
|
|
2016-01-28 00:24:59 +03:00
|
|
|
CLEANFILES+= config.log config.h Makefile.local
|
2010-02-20 16:43:31 +03:00
|
|
|
|
2015-12-18 01:31:49 +03:00
|
|
|
config.h: configure
|
2017-09-07 21:57:47 +03:00
|
|
|
SRCDIR=${DISTDIR} CC=${HOST_CC} ${HOST_SH} ${DISTDIR}/configure
|
2009-10-27 00:17:19 +03:00
|
|
|
|
2009-10-21 22:04:52 +04:00
|
|
|
.include "${.CURDIR}/../Makefile.host"
|