do not error on warnings
[platform/upstream/ltrace.git] / Makefile.am
1 # This file is part of ltrace.
2 # Copyright (C) 2012, 2013 Petr Machata, Red Hat Inc.
3 # Copyright (C) 2010 Marc Kleine-Budde, Pengutronix
4 # Copyright (C) 2010 Zachary T Welch, CodeSourcery
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 2 of the
9 # License, or (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19 # 02110-1301 USA
20
21 ACLOCAL_AMFLAGS = -I config/m4
22
23 SUBDIRS = \
24         sysdeps \
25         . \
26         testsuite
27
28 noinst_LTLIBRARIES = \
29         libltrace.la
30
31 libltrace_la_SOURCES = bits.c breakpoints.c debug.c demangle.c dict.c   \
32         ltrace-elf.c execute_program.c handle_event.c libltrace.c       \
33         options.c output.c proc.c read_config_file.c summary.c          \
34         library.c filter.c glob.c type.c value.c value_dict.c expr.c    \
35         fetch.c vect.c param.c printf.c zero.c lens.c lens_default.c    \
36         lens_enum.c memstream.c prototype.c
37 if HAVE_LIBDW
38 libltrace_la_SOURCES += dwarf_prototypes.c
39 endif
40
41 libltrace_la_LIBADD = \
42         $(libelf_LIBS) \
43         $(liberty_LIBS) \
44         $(libsupcxx_LIBS) \
45         $(libstdcxx_LIBS) \
46         $(libdw_LIBS) \
47         $(libunwind_LIBS) \
48         sysdeps/libos.la
49
50 bin_PROGRAMS = \
51         ltrace
52
53 ltrace_SOURCES = \
54         main.c
55
56 ltrace_LDADD = \
57         libltrace.la
58
59 noinst_HEADERS = bits.h backend.h breakpoint.h common.h debug.h         \
60         defs.h demangle.h dict.h forward.h ltrace-elf.h ltrace.h        \
61         options.h output.h proc.h read_config_file.h summary.h          \
62         library.h filter.h glob.h vect.h type.h value.h value_dict.h    \
63         callback.h expr.h fetch.h vect.h param.h printf.h zero.h        \
64         lens.h lens_default.h lens_enum.h memstream.h prototype.h
65 if HAVE_LIBDW
66 noinst_HEADERS += dwarf_prototypes.h
67 endif
68
69 dist_man1_MANS = ltrace.1
70 dist_man5_MANS = ltrace.conf.5
71
72 dist_doc_DATA = COPYING CREDITS INSTALL README TODO
73
74 dist_pkgdata_DATA = etc/syscalls.conf etc/libc.so.conf  \
75         etc/libm.so.conf etc/libacl.so.conf
76
77 EXTRA_DIST = \
78         debian/changelog \
79         debian/compat \
80         debian/control \
81         debian/copyright \
82         debian/rules
83
84 MAINTAINERCLEANFILES = \
85         configure \
86         Makefile.in \
87         aclocal.m4 \
88         config.h.in \
89         config.h.in~ \
90         config/autoconf/compile \
91         config/autoconf/config.guess \
92         config/autoconf/config.sub \
93         config/autoconf/depcomp \
94         config/autoconf/install-sh \
95         config/autoconf/ltmain.sh \
96         config/autoconf/mdate-sh \
97         config/autoconf/missing \
98         config/autoconf/texinfo.tex \
99         libtool.m4 \
100         ltoptions.m4 \
101         ltsugar.m4 \
102         ltversion.m4 \
103         lt~obsolete.m4 \
104         $(DIST_ARCHIVES)
105
106 maintainer-clean-local:
107         -chmod -R a+rw $(distdir)
108         -rm -fr $(distdir)