xref: /freebsd/contrib/libxo/xopo/Makefile.am (revision 0957b409a90fd597c1e9124cbaf3edd2b488f4ac)
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 = xopo
25
26xopo_SOURCES = xopo.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 = xopo.1
38
39EXTRA_DIST = xopo.1
40
41install-data-hook:
42	for file in ${man_MANS}; do \
43	    cat ../libxo/add.man >> ${DESTDIR}${man1dir}/$$file ; done
44