1.include <src.opts.mk> 2 3MANDOCDIR= ${SRCTOP}/contrib/mandoc 4.PATH: ${MANDOCDIR} 5 6PROG= mandoc 7MAN= mandoc.1 eqn.7 mandoc_char.7 tbl.7 man.7 mdoc.7 roff.7 8MLINKS= mandoc.1 mdocml.1 9.if ${MK_MAN_UTILS} != no 10MAN+= apropos.1 makewhatis.8 11MLINKS+= apropos.1 whatis.1 12LINKS= ${BINDIR}/mandoc ${BINDIR}/whatis \ 13 ${BINDIR}/mandoc ${BINDIR}/makewhatis \ 14 ${BINDIR}/mandoc ${BINDIR}/apropos 15.elif defined(BOOTSTRAPPING) 16.error MK_MAN_UTILS should be set to yes when bootstrapping 17.endif 18 19LIBMAN_SRCS= man.c \ 20 man_macro.c \ 21 man_validate.c 22 23LIBMDOC_SRCS= arch.c \ 24 att.c \ 25 lib.c \ 26 mdoc.c \ 27 mdoc_argv.c \ 28 mdoc_macro.c \ 29 mdoc_markdown.c \ 30 mdoc_state.c \ 31 mdoc_validate.c \ 32 st.c \ 33 34LIBROFF_SRCS= eqn.c \ 35 roff.c \ 36 roff_html.c \ 37 roff_term.c \ 38 roff_validate.c \ 39 tbl.c \ 40 tbl_data.c \ 41 tbl_layout.c \ 42 tbl_opts.c \ 43 44LIB_SRCS= ${LIBMAN_SRCS} \ 45 ${LIBMDOC_SRCS} \ 46 ${LIBROFF_SRCS} \ 47 chars.c \ 48 mandoc.c \ 49 mandoc_aux.c \ 50 mandoc_msg.c \ 51 mandoc_ohash.c \ 52 mandoc_xr.c \ 53 msec.c \ 54 preconv.c \ 55 read.c \ 56 compat_recallocarray.c \ 57 58HTML_SRCS= eqn_html.c \ 59 html.c \ 60 man_html.c \ 61 mdoc_html.c \ 62 tbl_html.c 63 64MAN_SRCS= mdoc_man.c 65 66TERM_SRCS= eqn_term.c \ 67 man_term.c \ 68 mdoc_term.c \ 69 term.c \ 70 term_ascii.c \ 71 term_ps.c \ 72 term_tab.c \ 73 term_tag.c \ 74 tbl_term.c 75 76DBM_SRCS= dbm.c \ 77 dbm_map.c \ 78 mansearch.c 79 80DBA_SRCS= dba.c \ 81 dba_array.c \ 82 dba_read.c \ 83 dba_write.c \ 84 mandocdb.c 85 86SRCS= ${LIB_SRCS} \ 87 ${HTML_SRCS} \ 88 ${MAN_SRCS} \ 89 ${TERM_SRCS} \ 90 ${DBM_SRCS} \ 91 ${DBA_SRCS} \ 92 main.c \ 93 manpath.c \ 94 out.c \ 95 tag.c \ 96 tree.c 97 98WARNS?= 3 99CFLAGS+= -DHAVE_CONFIG_H \ 100 -I${SRCTOP}/lib/libopenbsd/ 101# This can be removed after swtiching to newer gcc 102CFLAGS.gcc+= -Wno-format 103LIBADD= openbsd z 104 105.include <bsd.prog.mk> 106