]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libxo/libxo/Makefile.am
MFV r331400: 8484 Implement aggregate sum and use for arc counters
[FreeBSD/FreeBSD.git] / contrib / libxo / libxo / Makefile.am
1 #
2 # Copyright 2014, Juniper Networks, Inc.
3 # All rights reserved.
4 # This SOFTWARE is licensed under the LICENSE provided in the
5 # ../Copyright file. By downloading, installing, copying, or otherwise
6 # using the SOFTWARE, you agree to be bound by the terms of that
7 # LICENSE.
8
9 if LIBXO_WARNINGS_HIGH
10 LIBXO_WARNINGS = HIGH
11 endif
12 if HAVE_GCC
13 GCC_WARNINGS = yes
14 endif
15 include ${top_srcdir}/warnings.mk
16
17 libxoincdir = ${includedir}/libxo
18
19 AM_CFLAGS = \
20     -I${top_srcdir} \
21     ${WARNINGS} \
22     ${GETTEXT_CFLAGS}
23
24 AM_CFLAGS += \
25     -DXO_ENCODERDIR=\"${XO_ENCODERDIR}\"
26
27 lib_LTLIBRARIES = libxo.la
28
29 LIBS = \
30     ${GETTEXT_LIBS}
31
32 libxoinc_HEADERS = \
33      xo.h \
34      xo_encoder.h
35
36 noinst_HEADERS = \
37      xo_buf.h \
38      xo_humanize.h \
39      xo_wcwidth.h
40
41 libxo_la_SOURCES = \
42     libxo.c \
43     xo_encoder.c \
44     xo_syslog.c
45
46 man3_files = \
47     libxo.3 \
48     xo_attr.3 \
49     xo_create.3 \
50     xo_emit.3 \
51     xo_emit_err.3 \
52     xo_err.3 \
53     xo_error.3 \
54     xo_finish.3 \
55     xo_flush.3 \
56     xo_message.3 \
57     xo_no_setlocale.3 \
58     xo_open_container.3 \
59     xo_open_list.3 \
60     xo_open_marker.3 \
61     xo_parse_args.3 \
62     xo_set_allocator.3 \
63     xo_set_flags.3 \
64     xo_set_info.3 \
65     xo_set_options.3 \
66     xo_set_style.3 \
67     xo_set_syslog_enterprise_id.3 \
68     xo_set_version.3 \
69     xo_set_writer.3 \
70     xo_syslog.3
71
72 man5_files = \
73     xo_format.5
74
75 man7_files = \
76     xo_options.7
77
78 man_MANS = ${man3_files} ${man5_files} ${man7_files}
79
80 EXTRA_DIST = \
81     ${man_MANS}
82
83 call-graph:
84         ${RM} libxo.o
85         ${MAKE} CC="clang -Xclang -analyze -Xclang \
86             -analyzer-checker=debug.ViewCallGraph" libxo.o
87
88 install-data-hook:
89         for file in ${man3_files}; do \
90             cat ../libxo/add.man >> ${DESTDIR}${man3dir}/$$file ; done
91         for file in ${man5_files}; do \
92             cat ../libxo/add.man >> ${DESTDIR}${man5dir}/$$file ; done
93         for file in ${man7_files}; do \
94             cat ../libxo/add.man >> ${DESTDIR}${man7dir}/$$file ; done