xref: /illumos-gate/usr/src/cmd/mandoc/Makefile.common (revision 5328fc53d11d7151861fa272e4fb0248b8f0e145)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2014 Garrett D'Amore <garrett@damore.org>
14# Copyright 2017 Nexenta Systems, Inc.
15# Copyright 2018, Joyent, Inc.
16#
17
18PROG=		mandoc
19
20OBJS=		arch.o		\
21		att.o		\
22		chars.o		\
23		dba.o		\
24		dba_array.o	\
25		dba_read.o	\
26		dba_write.o	\
27		dbm.o		\
28		dbm_map.o	\
29		eqn.o		\
30		eqn_html.o	\
31		eqn_term.o	\
32		html.o		\
33		lib.o		\
34		main.o		\
35		man.o		\
36		manpath.o	\
37		man_html.o	\
38		man_macro.o	\
39		man_term.o	\
40		man_validate.o	\
41		mandoc.o	\
42		mandoc_aux.o	\
43		mandoc_msg.o	\
44		mandoc_ohash.o	\
45		mandoc_xr.o	\
46		mandocdb.o	\
47		mansearch.o	\
48		mdoc.o		\
49		mdoc_argv.o	\
50		mdoc_html.o	\
51		mdoc_macro.o	\
52		mdoc_man.o	\
53		mdoc_markdown.o	\
54		mdoc_state.o	\
55		mdoc_term.o	\
56		mdoc_validate.o	\
57		msec.o		\
58		out.o		\
59		read.o		\
60		roff.o		\
61		roff_html.o	\
62		roff_term.o	\
63		roff_validate.o	\
64		preconv.o	\
65		st.o		\
66		tag.o		\
67		tbl.o		\
68		tbl_data.o	\
69		tbl_html.o	\
70		tbl_layout.o	\
71		tbl_opts.o	\
72		tbl_term.o	\
73		term.o		\
74		term_ascii.o	\
75		term_ps.o	\
76		term_tab.o	\
77		tree.o
78
79OBJS +=		compat_ohash.o
80
81# XXX gcc 4.4.4 false positive
82roff.o :=	CERRWARN += $(CNOWARN_UNINIT)
83
84# not linted
85SMATCH=off
86
87CFLAGS +=	$(CC_VERBOSE)
88CSTD=		$(CSTD_GNU99)
89
90CPPFLAGS +=	-DOSNAME="\"illumos\"" -D_FILE_OFFSET_BITS=64
91
92LDLIBS +=	-lz
93