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