2012-10-19 22:21:01 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-05-30 17:41:37 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2012-10-19 22:21:01 +00:00
|
|
|
MDOCMLDIR= ${.CURDIR}/../../contrib/mdocml
|
|
|
|
.PATH: ${MDOCMLDIR}
|
|
|
|
|
|
|
|
PROG= mandoc
|
2014-11-23 22:28:46 +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
|
2016-07-20 00:06:03 +00:00
|
|
|
.if ${MK_MANDOCDB} != no && ${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
|
|
|
|
.endif
|
2014-11-22 20:48:21 +00:00
|
|
|
|
2015-05-21 12:51:56 +00:00
|
|
|
LIBMAN_SRCS= man.c \
|
|
|
|
man_hash.c \
|
|
|
|
man_macro.c \
|
|
|
|
man_validate.c
|
|
|
|
|
|
|
|
LIBMDOC_SRCS= att.c \
|
|
|
|
lib.c \
|
|
|
|
mdoc.c \
|
|
|
|
mdoc_argv.c \
|
|
|
|
mdoc_hash.c \
|
|
|
|
mdoc_macro.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 \
|
|
|
|
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 \
|
2016-01-15 23:28:12 +00:00
|
|
|
mandoc_ohash.c \
|
2015-05-21 12:51:56 +00:00
|
|
|
msec.c \
|
|
|
|
preconv.c \
|
|
|
|
read.c
|
|
|
|
|
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 \
|
|
|
|
tbl_term.c
|
2014-12-02 23:24:57 +00:00
|
|
|
|
2014-12-25 21:56:56 +00:00
|
|
|
DB_SRCS= mandocdb.c \
|
|
|
|
mansearch.c \
|
|
|
|
mansearch_const.c \
|
2016-01-15 23:28:12 +00:00
|
|
|
tag.c \
|
2014-12-25 21:56:56 +00:00
|
|
|
manpath.c
|
|
|
|
|
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} \
|
|
|
|
main.c \
|
|
|
|
out.c \
|
|
|
|
tree.c
|
2012-10-19 22:21:01 +00:00
|
|
|
|
2014-12-25 21:56:56 +00:00
|
|
|
SRCS+= ${DB_SRCS}
|
2014-12-02 23:24:57 +00:00
|
|
|
|
2014-12-25 21:56:56 +00:00
|
|
|
WARNS?= 2
|
2014-12-02 23:24:57 +00:00
|
|
|
CFLAGS+= -DHAVE_CONFIG_H \
|
2015-11-04 07:20:55 +00:00
|
|
|
-I${.CURDIR}/../../lib/libopenbsd/ \
|
2014-12-02 23:24:57 +00:00
|
|
|
-I${.CURDIR}/../../contrib/sqlite3
|
2015-11-04 07:20:55 +00:00
|
|
|
LIBADD= openbsd sqlite3 z
|
2012-10-19 22:21:01 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|