summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-05-21 12:51:56 +0000
committerbapt <bapt@FreeBSD.org>2015-05-21 12:51:56 +0000
commite18aff02df2e6df8d9ad2575ebbb6503523e6051 (patch)
treedcd96a7e8eb67a84ceb5ffbc585e5ba37e6a3541 /usr.bin/mandoc
parenta6e346975c344c8521113b2c6552b36a9c332a73 (diff)
downloadFreeBSD-src-e18aff02df2e6df8d9ad2575ebbb6503523e6051.zip
FreeBSD-src-e18aff02df2e6df8d9ad2575ebbb6503523e6051.tar.gz
Drop libmandoc and incorporate it into the main mandoc Makefile
This simplifies maintainance of mandoc(1). Note that the same direction was taken on OpenBSD
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r--usr.bin/mandoc/Makefile36
1 files changed, 34 insertions, 2 deletions
diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile
index 5368689..cdb512b 100644
--- a/usr.bin/mandoc/Makefile
+++ b/usr.bin/mandoc/Makefile
@@ -9,6 +9,37 @@ FILESDIR= ${SHAREDIR}/mdocml
MAN= mandoc.1 eqn.7 mandoc_char.7 tbl.7 man.7 mdoc.7 # roff.7
MLINKS= mandoc.1 mdocml.1
+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 \
+ 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 \
+ msec.c \
+ preconv.c \
+ read.c
+
HTML_SRCS= eqn_html.c \
html.c \
man_html.c \
@@ -30,7 +61,8 @@ DB_SRCS= mandocdb.c \
mansearch_const.c \
manpath.c
-SRCS= ${HTML_SRCS} \
+SRCS= ${LIB_SRCS} \
+ ${HTML_SRCS} \
${MAN_SRCS} \
${TERM_SRCS} \
main.c \
@@ -43,6 +75,6 @@ WARNS?= 2
CFLAGS+= -DHAVE_CONFIG_H \
-I${.CURDIR}/../../lib/libohash/ \
-I${.CURDIR}/../../contrib/sqlite3
-LIBADD= mandoc ohash sqlite3
+LIBADD= ohash sqlite3
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud