aboutsummaryrefslogtreecommitdiff
path: root/lib/libxo/Makefile
blob: 7844332862ade408bff85149b41f328147323094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# $FreeBSD$

PACKAGE=lib${LIB}
SHLIBDIR?=      /lib

.include <src.opts.mk>

LIBXOSRC=	${SRCTOP}/contrib/libxo

.PATH:	${LIBXOSRC}/libxo

LIB=	xo
SHLIB_MAJOR=0

SRCS=	libxo.c xo_encoder.c xo_syslog.c

CFLAGS+=-I${LIBXOSRC}/libxo -I${.CURDIR}
CFLAGS+=-DXO_ENCODERDIR=\"/usr/lib/libxo/encoder\"

INCS=	xo.h xo_encoder.h
INCSDIR=${INCLUDEDIR}/libxo

LIBADD=	util

WARNS?= 5

MAN+=	libxo.3
MAN+=	xo_attr.3 \
	xo_create.3 \
	xo_emit.3 \
	xo_emit_err.3 \
	xo_err.3 \
	xo_error.3 \
	xo_finish.3 \
	xo_flush.3 \
	xo_message.3 \
	xo_no_setlocale.3 \
	xo_open_container.3 \
	xo_open_list.3 \
	xo_open_marker.3 \
	xo_parse_args.3 \
	xo_set_allocator.3 \
	xo_set_flags.3 \
	xo_set_info.3 \
	xo_set_options.3 \
	xo_set_style.3 \
	xo_set_syslog_enterprise_id.3 \
	xo_set_version.3 \
	xo_set_writer.3 \
	xo_syslog.3

MAN+=	xo_format.5

MAN+=	xo_options.7

MLINKS=	xo_attr.3 xo_attr_h.3 \
	xo_attr.3 xo_attr_hv.3 \
	xo_create.3 xo_create_to_file.3 \
	xo_create.3 xo_destroy.3 \
	xo_emit.3 xo_emit_h.3 \
	xo_emit.3 xo_emit_hv.3 \
	xo_emit_err.3 xo_emit_errc.3 \
	xo_emit_err.3 xo_emit_errx.3 \
	xo_emit_err.3 xo_emit_warn.3 \
	xo_emit_err.3 xo_emit_warnx.3 \
	xo_emit_err.3 xo_emit_warn_c.3 \
	xo_emit_err.3 xo_emit_warn_hc.3 \
	xo_err.3 xo_errc.3 \
	xo_err.3 xo_errx.3 \
	xo_err.3 xo_warn.3 \
	xo_err.3 xo_warnx.3 \
	xo_err.3 xo_warn_c.3 \
	xo_err.3 xo_warn_hc.3 \
	xo_finish.3 xo_finish_h.3 \
	xo_flush.3 xo_flush_h.3 \
	xo_message.3 xo_message_c.3 \
	xo_message.3 xo_message_hc.3 \
	xo_message.3 xo_message_hcv.3 \
	xo_open_container.3 xo_open_container_h.3 \
	xo_open_container.3 xo_open_container_hd.3 \
	xo_open_container.3 xo_open_container_d.3 \
	xo_open_container.3 xo_close_container.3 \
	xo_open_container.3 xo_close_container_h.3 \
	xo_open_container.3 xo_close_container_hd.3 \
	xo_open_container.3 xo_close_container_d.3 \
	xo_open_list.3 xo_open_list_h.3 \
	xo_open_list.3 xo_open_list_hd.3 \
	xo_open_list.3 xo_open_list_d.3 \
	xo_open_list.3 xo_open_instance.3 \
	xo_open_list.3 xo_open_instance_h.3 \
	xo_open_list.3 xo_open_instance_hd.3 \
	xo_open_list.3 xo_open_instance_d.3 \
	xo_open_list.3 xo_close_instance.3 \
	xo_open_list.3 xo_close_instance_h.3 \
	xo_open_list.3 xo_close_instance_hd.3 \
	xo_open_list.3 xo_close_instance_d.3 \
	xo_open_list.3 xo_close_list.3 \
	xo_open_list.3 xo_close_list_h.3 \
	xo_open_list.3 xo_close_list_hd.3 \
	xo_open_list.3 xo_close_list_d.3 \
	xo_open_marker.3 xo_open_marker_h.3 \
	xo_open_marker.3 xo_close_marker.3 \
	xo_open_marker.3 xo_close_marker_h.3 \
	xo_parse_args.3 xo_set_program.3 \
	xo_set_flags.3 xo_clear_flags.3 \
	xo_set_style.3 xo_set_style_name.3 \
	xo_set_version.3 xo_set_version_h.3 \
	xo_syslog.3 xo_close_log.3 \
	xo_syslog.3 xo_open_log.3 \
	xo_syslog.3 xo_set_logmask.3 \
	xo_syslog.3 xo_vsyslog.3

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

.include <bsd.lib.mk>