Makefile.am revision 808d64b901e8a57ec77b865556f4d6905e5eba83
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
65libltrace_la_LIBADD = \
66	$(libelf_LIBS) \
67	$(liberty_LIBS) \
68	$(libsupcxx_LIBS) \
69	$(libstdcxx_LIBS) \
70	$(libunwind_LIBS) \
71	$(libunwind_ptrace_LIBS) \
72	$(libunwind_arch_LIBS) \
73	sysdeps/libos.la
74
75
76bin_PROGRAMS = \
77	ltrace
78
79ltrace_SOURCES = \
80	main.c
81
82ltrace_LDADD = \
83	libltrace.la
84
85
86noinst_HEADERS = \
87	backend.h \
88	breakpoint.h \
89	common.h \
90	debug.h \
91	defs.h \
92	demangle.h \
93	dict.h \
94	forward.h \
95	ltrace-elf.h \
96	ltrace.h \
97	options.h \
98	output.h \
99	proc.h \
100	read_config_file.h \
101	library.h \
102	filter.h \
103	glob.h \
104	vect.h \
105	type.h \
106	value.h \
107	value_dict.h \
108	callback.h \
109	expr.h \
110	fetch.h \
111	vect.h \
112	param.h \
113	printf.h \
114	zero.h \
115	lens.h \
116	lens_default.h \
117	lens_enum.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