diff options
author | bapt <bapt@FreeBSD.org> | 2014-11-22 20:48:21 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-11-22 20:48:21 +0000 |
commit | 62797787b72502299aaca232337a94ade10717c3 (patch) | |
tree | 06559ec5ba31f10beb7a1c16b6966e98dcb44c36 /usr.bin/mandoc | |
parent | b1ffc1c76c027ebc71e6a1463acb395136050389 (diff) | |
download | FreeBSD-src-62797787b72502299aaca232337a94ade10717c3.zip FreeBSD-src-62797787b72502299aaca232337a94ade10717c3.tar.gz |
Rework mandoc Makefile to ease maintainance
Add compat_reallocarray into libmandoc given other mandoc components will use
it.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/Makefile | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/usr.bin/mandoc/Makefile b/usr.bin/mandoc/Makefile index 7578f31..b823657 100644 --- a/usr.bin/mandoc/Makefile +++ b/usr.bin/mandoc/Makefile @@ -10,11 +10,26 @@ FILESDIR= ${SHAREDIR}/mdocml LINKS= mdocml MAN= mandoc.1 eqn.7 mandoc_char.7 tbl.7 # man.7 mdoc.7 roff.7 MLINKS= mandoc.1 mdocml.1 -SRCS= main.c mdoc_term.c chars.c term.c tree.c man_term.c eqn_term.c \ - mdoc_man.c -SRCS+= html.c mdoc_html.c man_html.c out.c eqn_html.c -SRCS+= term_ps.c term_ascii.c tbl_term.c tbl_html.c -SRCS+= manpath.c compat_reallocarray.c + +HTML_SRCS= eqn_html.c \ + html.c \ + man_html.c \ + mdoc_html.c \ + tbl_html.c +MAN_SRCS= mdoc_man.c +TERM_SRCS= eqn_term.c \ + man_term.c \ + mdoc_term.c \ + term.c \ + term_ascii.c \ + term_ps.c \ + tbl_term.c +SRCS= ${HTML_SRCS} \ + ${MAN_SRCS} \ + ${TERM_SRCS} \ + main.c \ + out.c \ + tree.c WARNS?= 3 CFLAGS+= -DHAVE_CONFIG_H |