]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/mandoc/Makefile
Decode arguments to rtprio() and rtprio_thread().
[FreeBSD/FreeBSD.git] / usr.bin / mandoc / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 MDOCMLDIR=      ${SRCTOP}/contrib/mdocml
6 .PATH: ${MDOCMLDIR}
7
8 PROG=   mandoc
9 MAN=    mandoc.1 eqn.7 mandoc_char.7 tbl.7 man.7 mdoc.7 # roff.7
10 MLINKS= mandoc.1 mdocml.1
11 .if ${MK_MAN_UTILS} != no
12 MAN+=   apropos.1 makewhatis.8
13 MLINKS+=        apropos.1 whatis.1
14 LINKS=  ${BINDIR}/mandoc ${BINDIR}/whatis \
15         ${BINDIR}/mandoc ${BINDIR}/makewhatis \
16         ${BINDIR}/mandoc ${BINDIR}/apropos
17 .endif
18
19 LIBMAN_SRCS=    man.c \
20                 man_macro.c \
21                 man_validate.c
22
23 LIBMDOC_SRCS=   att.c \
24                 lib.c \
25                 mdoc.c \
26                 mdoc_argv.c \
27                 mdoc_macro.c \
28                 mdoc_markdown.c \
29                 mdoc_state.c \
30                 mdoc_validate.c \
31                 st.c \
32
33 LIBROFF_SRCS=   eqn.c \
34                 roff.c \
35                 roff_html.c \
36                 roff_term.c \
37                 roff_validate.c \
38                 tbl.c \
39                 tbl_data.c \
40                 tbl_layout.c \
41                 tbl_opts.c \
42
43 LIB_SRCS=       ${LIBMAN_SRCS} \
44                 ${LIBMDOC_SRCS} \
45                 ${LIBROFF_SRCS} \
46                 chars.c \
47                 mandoc.c \
48                 mandoc_aux.c \
49                 mandoc_ohash.c \
50                 msec.c \
51                 preconv.c \
52                 read.c
53
54 HTML_SRCS=      eqn_html.c \
55                 html.c \
56                 man_html.c \
57                 mdoc_html.c \
58                 tbl_html.c
59
60 MAN_SRCS=       mdoc_man.c
61
62 TERM_SRCS=      eqn_term.c \
63                 man_term.c \
64                 mdoc_term.c \
65                 term.c \
66                 term_ascii.c \
67                 term_ps.c \
68                 term_tab.c \
69                 tbl_term.c
70
71 DBM_SRCS=       dbm.c \
72                 dbm_map.c \
73                 mansearch.c
74
75 DBA_SRCS=       dba.c \
76                 dba_array.c \
77                 dba_read.c \
78                 dba_write.c \
79                 mandocdb.c
80
81 SRCS=           ${LIB_SRCS} \
82                 ${HTML_SRCS} \
83                 ${MAN_SRCS} \
84                 ${TERM_SRCS} \
85                 ${DBM_SRCS} \
86                 ${DBA_SRCS} \
87                 main.c \
88                 manpath.c \
89                 out.c \
90                 tag.c \
91                 tree.c
92
93 WARNS?= 3
94 CFLAGS+= -DHAVE_CONFIG_H \
95          -I${SRCTOP}/lib/libopenbsd/
96 LIBADD= openbsd z
97
98 .include <bsd.prog.mk>