1 # $NetBSD: Makefile,v 1.15 2018/08/16 03:59:52 kre Exp $ 2 3 .include <bsd.own.mk> 4 5 PROG= mandoc 6 7 SRCS= \ 8 eqn_html.c \ 9 eqn_term.c \ 10 html.c \ 11 main.c \ 12 man_html.c \ 13 man_term.c \ 14 mandoc_xr.c \ 15 manpath.c \ 16 mdoc_html.c \ 17 mdoc_markdown.c \ 18 mdoc_term.c \ 19 out.c \ 20 roff_html.c \ 21 roff_term.c \ 22 tbl_html.c \ 23 tbl_term.c \ 24 term.c \ 25 term_ascii.c \ 26 term_ps.c \ 27 term_tab.c \ 28 tree.c 29 30 .ifndef HOSTPROG 31 DPADD+= ${MDOCMLLIB.mandoc} ${LIBZ} 32 LDADD+= -L${MDOCMLOBJDIR.mandoc} -lmandoc -lz 33 CPPFLAGS+= -DUSE_WCHAR 34 SRCS+= compat_recallocarray.c 35 .else 36 SRCS.libmandoc!=cd ${.PARSEDIR}/../../lib/libmandoc && ${MAKE} -v SRCS 37 38 SRCS+= ${SRCS.libmandoc} compat_strtonum.c compat_reallocarray.c \ 39 compat_recallocarray.c 40 .endif 41 42 COPTS.man_term.c+= -Wno-error=array-bounds 43 44 .include <bsd.prog.mk> 45