Makefile.am revision 302408
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 9if LIBXO_WARNINGS_HIGH 10LIBXO_WARNINGS = HIGH 11endif 12if HAVE_GCC 13GCC_WARNINGS = yes 14endif 15include ${top_srcdir}/warnings.mk 16 17libxoincdir = ${includedir}/libxo 18 19AM_CFLAGS = \ 20 -I${top_srcdir} \ 21 ${WARNINGS} \ 22 ${GETTEXT_CFLAGS} 23 24AM_CFLAGS += \ 25 -DXO_ENCODERDIR=\"${XO_ENCODERDIR}\" 26 27lib_LTLIBRARIES = libxo.la 28 29LIBS = \ 30 ${GETTEXT_LIBS} 31 32libxoinc_HEADERS = \ 33 xo.h \ 34 xo_encoder.h 35 36noinst_HEADERS = \ 37 xo_buf.h \ 38 xo_humanize.h \ 39 xo_wcwidth.h 40 41libxo_la_SOURCES = \ 42 libxo.c \ 43 xo_encoder.c \ 44 xo_syslog.c 45 46man3_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 72man5_files = \ 73 xo_format.5 74 75man_MANS = ${man3_files} ${man5_files} 76 77EXTRA_DIST = \ 78 ${man_MANS} 79 80call-graph: 81 ${RM} libxo.o 82 ${MAKE} CC="clang -Xclang -analyze -Xclang \ 83 -analyzer-checker=debug.ViewCallGraph" libxo.o 84 85install-data-hook: 86 for file in ${man3_files}; do \ 87 cat ../libxo/add.man >> ${DESTDIR}${man3dir}/$$file ; done 88 for file in ${man5_files}; do \ 89 cat ../libxo/add.man >> ${DESTDIR}${man5dir}/$$file ; done 90