1 # $NetBSD: Makefile,v 1.11 2016/07/15 19:40:42 christos Exp $ 2 3 .include <bsd.own.mk> 4 5 PROG= mandoc 6 7 SRCS= main.c out.c tree.c \ 8 eqn_html.c eqn_term.c \ 9 html.c man_html.c mdoc_html.c tbl_html.c \ 10 manpath.c man_term.c mdoc_term.c term.c term_ascii.c \ 11 term_ps.c tbl_term.c 12 13 .ifndef HOSTPROG 14 DPADD+= ${MDOCMLLIB.mandoc} ${LIBZ} 15 LDADD+= -L${MDOCMLOBJDIR.mandoc} -lmandoc -lz 16 CPPFLAGS+= -DUSE_WCHAR 17 .else 18 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -V '$${SRCS}' 19 20 SRCS+= ${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c 21 .endif 22 23 .include <bsd.prog.mk> 24