Makefile.am 2.94 KB
Newer Older
1
# This file is part of ltrace.
2
# Copyright (C) 2012, 2013 Petr Machata, Red Hat Inc.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Copyright (C) 2010 Marc Kleine-Budde, Pengutronix
# Copyright (C) 2010 Zachary T Welch, CodeSourcery
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
# 02110-1301 USA

21 22
ACLOCAL_AMFLAGS = -I config/m4

23
SUBDIRS = \
24 25 26
	sysdeps \
	. \
	testsuite
27 28 29 30

noinst_LTLIBRARIES = \
	libltrace.la

31
libltrace_la_SOURCES = bits.c breakpoints.c debug.c demangle.c dict.c	\
32 33 34 35
	ltrace-elf.c execute_program.c handle_event.c libltrace.c	\
	options.c output.c proc.c read_config_file.c summary.c		\
	library.c filter.c glob.c type.c value.c value_dict.c expr.c	\
	fetch.c vect.c param.c printf.c zero.c lens.c lens_default.c	\
36 37 38 39
	lens_enum.c memstream.c prototype.c
if HAVE_LIBDW
libltrace_la_SOURCES += dwarf_prototypes.c
endif
40 41 42 43 44

libltrace_la_LIBADD = \
	$(libelf_LIBS) \
	$(liberty_LIBS) \
	$(libsupcxx_LIBS) \
45
	$(libstdcxx_LIBS) \
46
	$(libdw_LIBS) \
47
	$(libunwind_LIBS) \
48 49 50 51 52 53 54 55 56 57 58
	sysdeps/libos.la

bin_PROGRAMS = \
	ltrace

ltrace_SOURCES = \
	main.c

ltrace_LDADD = \
	libltrace.la

59 60
noinst_HEADERS = bits.h backend.h breakpoint.h common.h debug.h		\
	defs.h demangle.h dict.h forward.h ltrace-elf.h ltrace.h	\
61 62 63
	options.h output.h proc.h read_config_file.h summary.h		\
	library.h filter.h glob.h vect.h type.h value.h value_dict.h	\
	callback.h expr.h fetch.h vect.h param.h printf.h zero.h	\
64 65 66 67
	lens.h lens_default.h lens_enum.h memstream.h prototype.h
if HAVE_LIBDW
noinst_HEADERS += dwarf_prototypes.h
endif
68

69 70
dist_man1_MANS = ltrace.1
dist_man5_MANS = ltrace.conf.5
Petr Machata's avatar
Petr Machata committed
71 72

dist_doc_DATA = COPYING CREDITS INSTALL README TODO
73

74
dist_pkgdata_DATA = etc/syscalls.conf etc/libc.so.conf	\
Jérôme Pouiller's avatar
Jérôme Pouiller committed
75 76
	etc/libm.so.conf etc/libacl.so.conf etc/libpthread.so.conf \
	etc/libpthread.so-types.conf etc/libc.so-types.conf
77 78 79 80

EXTRA_DIST = \
	debian/changelog \
	debian/compat \
81
	debian/control \
82 83 84 85 86 87 88
	debian/copyright \
	debian/rules

MAINTAINERCLEANFILES = \
	configure \
	Makefile.in \
	aclocal.m4 \
89 90
	config.h.in \
	config.h.in~ \
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
	config/autoconf/compile \
	config/autoconf/config.guess \
	config/autoconf/config.sub \
	config/autoconf/depcomp \
	config/autoconf/install-sh \
	config/autoconf/ltmain.sh \
	config/autoconf/mdate-sh \
	config/autoconf/missing \
	config/autoconf/texinfo.tex \
	libtool.m4 \
	ltoptions.m4 \
	ltsugar.m4 \
	ltversion.m4 \
	lt~obsolete.m4 \
	$(DIST_ARCHIVES)

maintainer-clean-local:
	-chmod -R a+rw $(distdir)
	-rm -fr $(distdir)