2012-10-19 22:21:01 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-05-30 17:41:37 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2018-09-20 10:58:52 +00:00
|
|
|
MANDOCDIR= ${SRCTOP}/contrib/mandoc
|
|
|
|
.PATH: ${MANDOCDIR}
|
2012-10-19 22:21:01 +00:00
|
|
|
|
|
|
|
PROG= mandoc
|
2018-04-13 09:04:31 +00:00
|
|
|
MAN= mandoc.1 eqn.7 mandoc_char.7 tbl.7 man.7 mdoc.7 roff.7
|
2015-05-30 17:41:37 +00:00
|
|
|
MLINKS= mandoc.1 mdocml.1
|
2017-03-11 06:51:21 +00:00
|
|
|
.if ${MK_MAN_UTILS} != no
|
2015-05-30 17:41:37 +00:00
|
|
|
MAN+= apropos.1 makewhatis.8
|
|
|
|
MLINKS+= apropos.1 whatis.1
|
|
|
|
LINKS= ${BINDIR}/mandoc ${BINDIR}/whatis \
|
|
|
|
${BINDIR}/mandoc ${BINDIR}/makewhatis \
|
|
|
|
${BINDIR}/mandoc ${BINDIR}/apropos
|
2020-09-10 15:37:29 +00:00
|
|
|
.elif defined(BOOTSTRAPPING)
|
2022-01-15 21:20:24 +00:00
|
|
|
.error MK_MAN_UTILS should be set to yes when bootstrapping
|
2015-05-30 17:41:37 +00:00
|
|
|
.endif
|
2014-11-22 20:48:21 +00:00
|
|
|
|
2015-05-21 12:51:56 +00:00
|
|
|
LIBMAN_SRCS= man.c \
|
|
|
|
man_macro.c \
|
|
|
|
man_validate.c
|
|
|
|
|
2019-04-12 10:13:17 +00:00
|
|
|
LIBMDOC_SRCS= arch.c \
|
|
|
|
att.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
lib.c \
|
|
|
|
mdoc.c \
|
|
|
|
mdoc_argv.c \
|
|
|
|
mdoc_macro.c \
|
2017-06-08 19:40:00 +00:00
|
|
|
mdoc_markdown.c \
|
2016-01-15 23:28:12 +00:00
|
|
|
mdoc_state.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
mdoc_validate.c \
|
|
|
|
st.c \
|
|
|
|
|
|
|
|
LIBROFF_SRCS= eqn.c \
|
|
|
|
roff.c \
|
2017-06-08 19:40:00 +00:00
|
|
|
roff_html.c \
|
|
|
|
roff_term.c \
|
|
|
|
roff_validate.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
tbl.c \
|
|
|
|
tbl_data.c \
|
|
|
|
tbl_layout.c \
|
|
|
|
tbl_opts.c \
|
|
|
|
|
|
|
|
LIB_SRCS= ${LIBMAN_SRCS} \
|
|
|
|
${LIBMDOC_SRCS} \
|
|
|
|
${LIBROFF_SRCS} \
|
|
|
|
chars.c \
|
|
|
|
mandoc.c \
|
|
|
|
mandoc_aux.c \
|
2019-04-12 10:13:17 +00:00
|
|
|
mandoc_msg.c \
|
2016-01-15 23:28:12 +00:00
|
|
|
mandoc_ohash.c \
|
2017-07-31 19:34:38 +00:00
|
|
|
mandoc_xr.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
msec.c \
|
|
|
|
preconv.c \
|
2017-07-31 19:34:38 +00:00
|
|
|
read.c \
|
|
|
|
compat_recallocarray.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
|
2014-11-22 20:48:21 +00:00
|
|
|
HTML_SRCS= eqn_html.c \
|
|
|
|
html.c \
|
|
|
|
man_html.c \
|
|
|
|
mdoc_html.c \
|
|
|
|
tbl_html.c
|
2014-12-02 23:24:57 +00:00
|
|
|
|
2014-11-22 20:48:21 +00:00
|
|
|
MAN_SRCS= mdoc_man.c
|
2014-12-02 23:24:57 +00:00
|
|
|
|
2014-11-22 20:48:21 +00:00
|
|
|
TERM_SRCS= eqn_term.c \
|
|
|
|
man_term.c \
|
|
|
|
mdoc_term.c \
|
|
|
|
term.c \
|
|
|
|
term_ascii.c \
|
|
|
|
term_ps.c \
|
2017-06-08 19:40:00 +00:00
|
|
|
term_tab.c \
|
2021-11-15 15:54:38 +00:00
|
|
|
term_tag.c \
|
2014-11-22 20:48:21 +00:00
|
|
|
tbl_term.c
|
2014-12-02 23:24:57 +00:00
|
|
|
|
2017-01-21 13:17:25 +00:00
|
|
|
DBM_SRCS= dbm.c \
|
|
|
|
dbm_map.c \
|
|
|
|
mansearch.c
|
|
|
|
|
|
|
|
DBA_SRCS= dba.c \
|
|
|
|
dba_array.c \
|
|
|
|
dba_read.c \
|
|
|
|
dba_write.c \
|
|
|
|
mandocdb.c
|
2014-12-25 21:56:56 +00:00
|
|
|
|
2015-05-21 12:51:56 +00:00
|
|
|
SRCS= ${LIB_SRCS} \
|
|
|
|
${HTML_SRCS} \
|
2014-11-22 20:48:21 +00:00
|
|
|
${MAN_SRCS} \
|
|
|
|
${TERM_SRCS} \
|
2017-01-21 13:17:25 +00:00
|
|
|
${DBM_SRCS} \
|
|
|
|
${DBA_SRCS} \
|
2014-11-22 20:48:21 +00:00
|
|
|
main.c \
|
2017-01-21 13:17:25 +00:00
|
|
|
manpath.c \
|
2014-11-22 20:48:21 +00:00
|
|
|
out.c \
|
2017-01-21 13:17:25 +00:00
|
|
|
tag.c \
|
2014-11-22 20:48:21 +00:00
|
|
|
tree.c
|
2012-10-19 22:21:01 +00:00
|
|
|
|
2017-01-21 13:17:25 +00:00
|
|
|
WARNS?= 3
|
2014-12-02 23:24:57 +00:00
|
|
|
CFLAGS+= -DHAVE_CONFIG_H \
|
2017-03-12 18:58:44 +00:00
|
|
|
-I${SRCTOP}/lib/libopenbsd/
|
2019-04-12 18:35:14 +00:00
|
|
|
# This can be removed after swtiching to newer gcc
|
|
|
|
CFLAGS.gcc+= -Wno-format
|
2017-01-21 13:17:25 +00:00
|
|
|
LIBADD= openbsd z
|
2012-10-19 22:21:01 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|