Makefile.am revision 82f748d1bc2b95d594327ad15f3a6908070dd5c3
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
21ACLOCAL_AMFLAGS = -I config/m4
22
23SUBDIRS = \
24	sysdeps \
25	. \
26	testsuite
27
28noinst_LTLIBRARIES = \
29	libltrace.la
30
31libltrace_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
38libltrace_la_LIBADD = \
39	$(libelf_LIBS) \
40	$(liberty_LIBS) \
41	$(libsupcxx_LIBS) \
42	$(libstdcxx_LIBS) \
43	$(libunwind_LIBS) \
44	sysdeps/libos.la
45
46bin_PROGRAMS = \
47	ltrace
48
49ltrace_SOURCES = \
50	main.c
51
52ltrace_LDADD = \
53	libltrace.la
54
55noinst_HEADERS = bits.h backend.h breakpoint.h common.h debug.h		\
56	defs.h demangle.h dict.h forward.h ltrace-elf.h ltrace.h	\
57	options.h output.h proc.h read_config_file.h library.h		\
58	filter.h glob.h vect.h type.h value.h value_dict.h callback.h	\
59	expr.h fetch.h vect.h param.h printf.h zero.h lens.h		\
60	lens_default.h lens_enum.h memstream.h prototype.h
61
62dist_man1_MANS = ltrace.1
63dist_man5_MANS = ltrace.conf.5
64
65dist_doc_DATA = COPYING CREDITS INSTALL README TODO
66
67dist_pkgdata_DATA = etc/syscalls.conf etc/ltrace.conf
68
69EXTRA_DIST = \
70	debian/changelog \
71	debian/compat \
72	debian/control \
73	debian/copyright \
74	debian/rules
75
76MAINTAINERCLEANFILES = \
77	configure \
78	Makefile.in \
79	aclocal.m4 \
80	config.h.in \
81	config.h.in~ \
82	config/autoconf/compile \
83	config/autoconf/config.guess \
84	config/autoconf/config.sub \
85	config/autoconf/depcomp \
86	config/autoconf/install-sh \
87	config/autoconf/ltmain.sh \
88	config/autoconf/mdate-sh \
89	config/autoconf/missing \
90	config/autoconf/texinfo.tex \
91	libtool.m4 \
92	ltoptions.m4 \
93	ltsugar.m4 \
94	ltversion.m4 \
95	lt~obsolete.m4 \
96	$(DIST_ARCHIVES)
97
98maintainer-clean-local:
99	-chmod -R a+rw $(distdir)
100	-rm -fr $(distdir)
101