Makefile.am revision 2ae374a196ca76406cd14503622060c2c5dc4cef
1# This file is part of ltrace.
2# Copyright (C) 2012 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
28AM_CPPFLAGS += \
29	$(libelf_CFLAGS) \
30	-DSYSCONFDIR=\"$(sysconfdir)\"
31
32noinst_LTLIBRARIES = \
33	libltrace.la
34
35libltrace_la_SOURCES = \
36	breakpoints.c \
37	debug.c \
38	demangle.c \
39	dict.c \
40	ltrace-elf.c \
41	execute_program.c \
42	handle_event.c \
43	libltrace.c \
44	options.c \
45	output.c \
46	proc.c \
47	read_config_file.c  \
48	summary.c \
49	library.c \
50	filter.c \
51	glob.c \
52	type.c \
53	value.c \
54	value_dict.c \
55	expr.c \
56	fetch.c \
57	vect.c \
58	param.c \
59	printf.c \
60	zero.c \
61	lens.c \
62	lens_default.c \
63	lens_enum.c \
64	memstream.c
65
66libltrace_la_LIBADD = \
67	$(libelf_LIBS) \
68	$(liberty_LIBS) \
69	$(libsupcxx_LIBS) \
70	$(libstdcxx_LIBS) \
71	$(libunwind_LIBS) \
72	sysdeps/libos.la
73
74
75bin_PROGRAMS = \
76	ltrace
77
78ltrace_SOURCES = \
79	main.c
80
81ltrace_LDADD = \
82	libltrace.la
83
84
85noinst_HEADERS = \
86	backend.h \
87	breakpoint.h \
88	common.h \
89	debug.h \
90	defs.h \
91	demangle.h \
92	dict.h \
93	forward.h \
94	ltrace-elf.h \
95	ltrace.h \
96	options.h \
97	output.h \
98	proc.h \
99	read_config_file.h \
100	library.h \
101	filter.h \
102	glob.h \
103	vect.h \
104	type.h \
105	value.h \
106	value_dict.h \
107	callback.h \
108	expr.h \
109	fetch.h \
110	vect.h \
111	param.h \
112	printf.h \
113	zero.h \
114	lens.h \
115	lens_default.h \
116	lens_enum.h \
117	memstream.h
118
119dist_man1_MANS = ltrace.1
120dist_man5_MANS = ltrace.conf.5
121
122dist_doc_DATA = COPYING CREDITS INSTALL README TODO
123
124dist_sysconf_DATA = \
125	etc/ltrace.conf
126
127EXTRA_DIST = \
128	ltrace.spec \
129	debian/changelog \
130	debian/compat \
131	debian/control \
132	debian/copyright \
133	debian/rules
134
135MAINTAINERCLEANFILES = \
136	configure \
137	Makefile.in \
138	aclocal.m4 \
139	config.h.in \
140	config.h.in~ \
141	config/autoconf/compile \
142	config/autoconf/config.guess \
143	config/autoconf/config.sub \
144	config/autoconf/depcomp \
145	config/autoconf/install-sh \
146	config/autoconf/ltmain.sh \
147	config/autoconf/mdate-sh \
148	config/autoconf/missing \
149	config/autoconf/texinfo.tex \
150	libtool.m4 \
151	ltoptions.m4 \
152	ltsugar.m4 \
153	ltversion.m4 \
154	lt~obsolete.m4 \
155	$(DIST_ARCHIVES)
156
157maintainer-clean-local:
158	-chmod -R a+rw $(distdir)
159	-rm -fr $(distdir)
160