]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libxo/xo/Makefile.am
Merge from vendor branch importing dtc 1.4.3
[FreeBSD/FreeBSD.git] / contrib / libxo / xo / 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 include ${top_srcdir}/warnings.mk
13
14 AM_CFLAGS = \
15     -DLIBXO_XMLSOFT_NEED_PRIVATE \
16     -I${top_builddir} \
17     -I${top_srcdir} \
18     -I${top_srcdir}/libxo \
19     ${WARNINGS}
20
21 LIBS = \
22     ${LIBXO_LIBS}
23
24 bin_PROGRAMS = xo
25
26 xo_SOURCES = xo.c
27 #xo_LDADD = ../libxo/libxo.la
28 #xo_LDFLAGS = -static
29
30 LDADD = \
31     ${top_builddir}/libxo/libxo.la
32
33 if HAVE_HUMANIZE_NUMBER
34 LDADD += -lutil
35 endif
36
37 man_MANS = xo.1
38
39 EXTRA_DIST = xo.1
40
41 install-data-hook:
42         for file in ${man_MANS}; do \
43             cat ../libxo/add.man >> ${DESTDIR}${man1dir}/$$file ; done