]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libxo/libxo/Makefile.am
Merge clang trunk r366426, resolve conflicts, and update FREEBSD-Xlist.
[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_explicit.h \
39      xo_humanize.h \
40      xo_wcwidth.h
41
42 libxo_la_SOURCES = \
43     libxo.c \
44     xo_encoder.c \
45     xo_syslog.c
46
47 man3_files = \
48     libxo.3 \
49     xo_attr.3 \
50     xo_create.3 \
51     xo_emit.3 \
52     xo_emit_err.3 \
53     xo_err.3 \
54     xo_error.3 \
55     xo_finish.3 \
56     xo_flush.3 \
57     xo_message.3 \
58     xo_no_setlocale.3 \
59     xo_open_container.3 \
60     xo_open_list.3 \
61     xo_open_marker.3 \
62     xo_parse_args.3 \
63     xo_set_allocator.3 \
64     xo_set_flags.3 \
65     xo_set_info.3 \
66     xo_set_options.3 \
67     xo_set_style.3 \
68     xo_set_syslog_enterprise_id.3 \
69     xo_set_version.3 \
70     xo_set_writer.3 \
71     xo_syslog.3
72
73 man5_files = \
74     xo_format.5
75
76 man7_files = \
77     xo_options.7
78
79 man_MANS = ${man3_files} ${man5_files} ${man7_files}
80
81 EXTRA_DIST = \
82     ${man_MANS}
83
84 call-graph:
85         ${RM} libxo.o
86         ${MAKE} CC="clang -Xclang -analyze -Xclang \
87             -analyzer-checker=debug.ViewCallGraph" libxo.o
88
89 install-data-hook:
90         for file in ${man3_files}; do \
91             cat ../libxo/add.man >> ${DESTDIR}${man3dir}/$$file ; done
92         for file in ${man5_files}; do \
93             cat ../libxo/add.man >> ${DESTDIR}${man5dir}/$$file ; done
94         for file in ${man7_files}; do \
95             cat ../libxo/add.man >> ${DESTDIR}${man7dir}/$$file ; done