xref: /freebsd/contrib/libxo/xo/Makefile.am (revision 193d9e768ba63fcfb187cfd17f461f7d41345048)
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
12include ${top_srcdir}/warnings.mk
13
14AM_CFLAGS = \
15    -DLIBXO_XMLSOFT_NEED_PRIVATE \
16    -I${top_builddir} \
17    -I${top_srcdir} \
18    -I${top_srcdir}/libxo \
19    ${WARNINGS}
20
21LIBS = \
22    ${LIBXO_LIBS}
23
24bin_PROGRAMS = xo
25
26xo_SOURCES = xo.c
27#xo_LDADD = ../libxo/libxo.la
28#xo_LDFLAGS = -static
29
30LDADD = \
31    ${top_builddir}/libxo/libxo.la
32
33if HAVE_HUMANIZE_NUMBER
34LDADD += -lutil
35endif
36
37man_MANS = xo.1
38
39EXTRA_DIST = xo.1
40
41install-data-hook:
42	for file in ${man_MANS}; do \
43	    cat ../libxo/add.man >> ${DESTDIR}${man1dir}/$$file ; done
44