1# $NetBSD: Makefile,v 1.4 2011/01/12 23:02:21 joerg Exp $ 2 3.include <bsd.own.mk> 4 5PROG= mandoc 6 7SRCS= main.c mdoc_term.c chars.c term.c term_ascii.c term_ps.c \ 8 tbl_term.c tbl_html.c tree.c compat.c \ 9 man_term.c html.c mdoc_html.c man_html.c out.c 10 11.ifndef HOSTPROG 12DPADD+= ${MDOCMLLIB.man} ${MDOCMLLIB.mdoc} ${MDOCMLLIB.roff} 13LDADD+= -L${MDOCMLOBJDIR.man} -lman \ 14 -L${MDOCMLOBJDIR.mdoc} -lmdoc \ 15 -L${MDOCMLOBJDIR.roff} -lroff 16.else 17SRCS.libman!= cd ${.PARSEDIR}/../../lib/libman && ${MAKE} -V '$${SRCS}' 18SRCS.libmdoc!= cd ${.PARSEDIR}/../../lib/libmdoc && ${MAKE} -V '$${SRCS}' 19SRCS.libroff!= cd ${.PARSEDIR}/../../lib/libroff && ${MAKE} -V '$${SRCS}' 20 21SRCS+= ${SRCS.libman} ${SRCS.libmdoc:Nmandoc.c} ${SRCS.libroff} 22.endif 23 24.include <bsd.prog.mk> 25