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_escape.c \ 37 roff_html.c \ 38 roff_term.c \ 39 roff_validate.c \ 40 tbl.c \ 41 tbl_data.c \ 42 tbl_layout.c \ 43 tbl_opts.c \ 44 45LIB_SRCS= ${LIBMAN_SRCS} \ 46 ${LIBMDOC_SRCS} \ 47 ${LIBROFF_SRCS} \ 48 chars.c \ 49 mandoc.c \ 50 mandoc_aux.c \ 51 mandoc_dbg.c \ 52 mandoc_msg.c \ 53 mandoc_ohash.c \ 54 mandoc_xr.c \ 55 msec.c \ 56 preconv.c \ 57 read.c \ 58 compat_recallocarray.c \ 59 60HTML_SRCS= eqn_html.c \ 61 html.c \ 62 man_html.c \ 63 mdoc_html.c \ 64 tbl_html.c 65 66MAN_SRCS= mdoc_man.c 67 68TERM_SRCS= eqn_term.c \ 69 man_term.c \ 70 mdoc_term.c \ 71 term.c \ 72 term_ascii.c \ 73 term_ps.c \ 74 term_tab.c \ 75 term_tag.c \ 76 tbl_term.c 77 78DBM_SRCS= dbm.c \ 79 dbm_map.c \ 80 mansearch.c 81 82DBA_SRCS= dba.c \ 83 dba_array.c \ 84 dba_read.c \ 85 dba_write.c \ 86 mandocdb.c 87 88SRCS= ${LIB_SRCS} \ 89 ${HTML_SRCS} \ 90 ${MAN_SRCS} \ 91 ${TERM_SRCS} \ 92 ${DBM_SRCS} \ 93 ${DBA_SRCS} \ 94 main.c \ 95 manpath.c \ 96 out.c \ 97 tag.c \ 98 tree.c 99 100WARNS?= 3 101CFLAGS+= -DHAVE_CONFIG_H \ 102 -I${SRCTOP}/lib/libopenbsd/ 103# This can be removed after swtiching to newer gcc 104CFLAGS.gcc+= -Wno-format 105LIBADD= openbsd z 106 107.include <bsd.prog.mk> 108