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