Makefile revision 322172
1# $FreeBSD: stable/11/lib/libxo/Makefile 322172 2017-08-07 17:23:44Z phil $
2
3PACKAGE=lib${LIB}
4SHLIBDIR?=      /lib
5
6.include <src.opts.mk>
7
8LIBXOSRC=	${SRCTOP}/contrib/libxo
9
10.PATH:	${LIBXOSRC}/libxo
11
12LIB=	xo
13SHLIB_MAJOR=0
14
15SRCS=	libxo.c xo_encoder.c xo_syslog.c
16
17CFLAGS+=-I${LIBXOSRC}/libxo -I${.CURDIR}
18CFLAGS+=-DXO_ENCODERDIR=\"/usr/lib/libxo/encoder\"
19
20INCS=	xo.h xo_encoder.h
21INCSDIR=${INCLUDEDIR}/libxo
22
23LIBADD=	util
24
25WARNS?= 5
26
27MAN+=	libxo.3
28MAN+=	xo_attr.3 \
29	xo_create.3 \
30	xo_emit.3 \
31	xo_emit_err.3 \
32	xo_err.3 \
33	xo_error.3 \
34	xo_finish.3 \
35	xo_flush.3 \
36	xo_message.3 \
37	xo_no_setlocale.3 \
38	xo_open_container.3 \
39	xo_open_list.3 \
40	xo_open_marker.3 \
41	xo_parse_args.3 \
42	xo_set_allocator.3 \
43	xo_set_flags.3 \
44	xo_set_info.3 \
45	xo_set_options.3 \
46	xo_set_style.3 \
47	xo_set_syslog_enterprise_id.3 \
48	xo_set_version.3 \
49	xo_set_writer.3 \
50	xo_syslog.3
51
52MAN+=	xo_format.5
53
54MAN+=	xo_options.7
55
56MLINKS=	xo_attr.3 xo_attr_h.3 \
57	xo_attr.3 xo_attr_hv.3 \
58	xo_create.3 xo_create_to_file.3 \
59	xo_create.3 xo_destroy.3 \
60	xo_emit.3 xo_emit_h.3 \
61	xo_emit.3 xo_emit_hv.3 \
62	xo_emit_err.3 xo_emit_errc.3 \
63	xo_emit_err.3 xo_emit_errx.3 \
64	xo_emit_err.3 xo_emit_warn.3 \
65	xo_emit_err.3 xo_emit_warnx.3 \
66	xo_emit_err.3 xo_emit_warn_c.3 \
67	xo_emit_err.3 xo_emit_warn_hc.3 \
68	xo_err.3 xo_errc.3 \
69	xo_err.3 xo_errx.3 \
70	xo_err.3 xo_warn.3 \
71	xo_err.3 xo_warnx.3 \
72	xo_err.3 xo_warn_c.3 \
73	xo_err.3 xo_warn_hc.3 \
74	xo_finish.3 xo_finish_h.3 \
75	xo_flush.3 xo_flush_h.3 \
76	xo_message.3 xo_message_c.3 \
77	xo_message.3 xo_message_hc.3 \
78	xo_message.3 xo_message_hcv.3 \
79	xo_open_container.3 xo_open_container_h.3 \
80	xo_open_container.3 xo_open_container_hd.3 \
81	xo_open_container.3 xo_open_container_d.3 \
82	xo_open_container.3 xo_close_container.3 \
83	xo_open_container.3 xo_close_container_h.3 \
84	xo_open_container.3 xo_close_container_hd.3 \
85	xo_open_container.3 xo_close_container_d.3 \
86	xo_open_list.3 xo_open_list_h.3 \
87	xo_open_list.3 xo_open_list_hd.3 \
88	xo_open_list.3 xo_open_list_d.3 \
89	xo_open_list.3 xo_open_instance.3 \
90	xo_open_list.3 xo_open_instance_h.3 \
91	xo_open_list.3 xo_open_instance_hd.3 \
92	xo_open_list.3 xo_open_instance_d.3 \
93	xo_open_list.3 xo_close_instance.3 \
94	xo_open_list.3 xo_close_instance_h.3 \
95	xo_open_list.3 xo_close_instance_hd.3 \
96	xo_open_list.3 xo_close_instance_d.3 \
97	xo_open_list.3 xo_close_list.3 \
98	xo_open_list.3 xo_close_list_h.3 \
99	xo_open_list.3 xo_close_list_hd.3 \
100	xo_open_list.3 xo_close_list_d.3 \
101	xo_open_marker.3 xo_open_marker_h.3 \
102	xo_open_marker.3 xo_close_marker.3 \
103	xo_open_marker.3 xo_close_marker_h.3 \
104	xo_parse_args.3 xo_set_program.3 \
105	xo_set_flags.3 xo_clear_flags.3 \
106	xo_set_style.3 xo_set_style_name.3 \
107	xo_set_version.3 xo_set_version_h.3 \
108	xo_syslog.3 xo_close_log.3 \
109	xo_syslog.3 xo_open_log.3 \
110	xo_syslog.3 xo_set_logmask.3 \
111	xo_syslog.3 xo_vsyslog.3
112
113.if ${MK_TESTS} != "no"
114SUBDIR+=	tests
115.endif
116
117.include <bsd.lib.mk>
118