mandoc(1): Move the config.h to the build directory.
[dragonfly.git] / usr.bin / mandoc / Makefile
1 .PATH:  ${.CURDIR}/../../contrib/mdocml
2
3 PROG=   mandoc
4 MAN=    mandoc.1 mandoc_char.7
5 #MAN+=  eqn.7 man.7 mdoc.7 roff.7 tbl.7
6 WARNS?= 3
7
8 CFLAGS+=-DHAVE_CONFIG_H -I${.CURDIR}
9
10 # libmandoc
11 SRCS=   man.c man_hash.c man_macro.c man_validate.c
12 SRCS+=  arch.c att.c lib.c mdoc.c mdoc_argv.c mdoc_hash.c mdoc_macro.c \
13         mdoc_validate.c st.c vol.c
14 SRCS+=  eqn.c roff.c tbl.c tbl_data.c tbl_layout.c tbl_opts.c
15 SRCS+=  chars.c mandoc.c msec.c read.c
16
17 # mandoc
18 SRCS+=  eqn_html.c html.c man_html.c mdoc_html.c tbl_html.c
19 SRCS+=  mdoc_man.c
20 SRCS+=  eqn_term.c man_term.c mdoc_term.c term.c term_ascii.c term_ps.c \
21         tbl_term.c
22 SRCS+=  main.c out.c tree.c compat_reallocarray.c mandoc_aux.c
23
24 .include <bsd.prog.mk>