Home | History | Annotate | Line # | Download | only in mandoc
Makefile revision 1.5
      1  1.5  joerg #	$NetBSD: Makefile,v 1.5 2010/02/20 13:43:31 joerg 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.3  joerg NOMAN=		# defined
      7  1.3  joerg 
      8  1.2  joerg .include <bsd.own.mk>
      9  1.5  joerg .include <bsd.sys.mk>
     10  1.2  joerg 
     11  1.2  joerg NETBSD_MINOR!=	${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh -n
     12  1.2  joerg NETBSD_OSNAME=	"NetBSD ${NETBSD_MINOR}"
     13  1.2  joerg 
     14  1.4  joerg HOST_CPPFLAGS+=	-DOSNAME=${NETBSD_OSNAME:Q} -DHAVE_CONFIG_H -I.
     15  1.4  joerg 
     16  1.4  joerg DPSRCS+=	config.h
     17  1.4  joerg 
     18  1.5  joerg CLEANFILES+=	config.log config.h
     19  1.5  joerg 
     20  1.4  joerg config.h: config.h.pre config.h.post
     21  1.4  joerg 	rm -f config.log
     22  1.4  joerg 	( cat ${DISTDIR}/config.h.pre; \
     23  1.4  joerg 	echo; \
     24  1.4  joerg 	if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcat.c >> config.log 2>&1; then \
     25  1.4  joerg 		echo '#define HAVE_STRLCAT'; \
     26  1.4  joerg 		rm test-strlcat.o; \
     27  1.4  joerg 	fi; \
     28  1.4  joerg 	if $(CC) $(CFLAGS) -Werror -c ${DISTDIR}/test-strlcpy.c >> config.log 2>&1; then \
     29  1.4  joerg 		echo '#define HAVE_STRLCPY'; \
     30  1.4  joerg 		rm test-strlcpy.o; \
     31  1.4  joerg 	fi; \
     32  1.4  joerg 	echo; \
     33  1.4  joerg 	cat ${DISTDIR}/config.h.post \
     34  1.4  joerg 	) > $@
     35  1.2  joerg 
     36  1.1  joerg .include "${.CURDIR}/../Makefile.host"
     37