Updates for Automake 1.13.
[platform/upstream/elfutils.git] / libdwfl / Makefile.am
1 ## Makefile.am for libdwfl library subdirectory in elfutils.
2 ##
3 ## Process this file with automake to create Makefile.in
4 ##
5 ## Copyright (C) 2005-2010 Red Hat, Inc.
6 ## This file is part of elfutils.
7 ##
8 ## This file is free software; you can redistribute it and/or modify
9 ## it under the terms of either
10 ##
11 ##   * the GNU Lesser General Public License as published by the Free
12 ##     Software Foundation; either version 3 of the License, or (at
13 ##     your option) any later version
14 ##
15 ## or
16 ##
17 ##   * the GNU General Public License as published by the Free
18 ##     Software Foundation; either version 2 of the License, or (at
19 ##     your option) any later version
20 ##
21 ## or both in parallel, as here.
22 ##
23 ## elfutils is distributed in the hope that it will be useful, but
24 ## WITHOUT ANY WARRANTY; without even the implied warranty of
25 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
26 ## General Public License for more details.
27 ##
28 ## You should have received copies of the GNU General Public License and
29 ## the GNU Lesser General Public License along with this program.  If
30 ## not, see <http://www.gnu.org/licenses/>.
31 ##
32 include $(top_srcdir)/config/eu.am
33 AM_CPPFLAGS += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
34            -I$(srcdir)/../libdw
35 VERSION = 1
36
37 noinst_LIBRARIES = libdwfl.a
38 if !MUDFLAP
39 noinst_LIBRARIES += libdwfl_pic.a
40 endif
41
42 pkginclude_HEADERS = libdwfl.h
43
44 libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
45                     dwfl_module.c dwfl_report_elf.c relocate.c \
46                     dwfl_module_build_id.c dwfl_module_report_build_id.c \
47                     derelocate.c offline.c segment.c \
48                     dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \
49                     dwfl_module_getdwarf.c dwfl_module_getelf.c \
50                     dwfl_validate_address.c \
51                     argp-std.c find-debuginfo.c \
52                     dwfl_build_id_find_elf.c \
53                     dwfl_build_id_find_debuginfo.c \
54                     linux-kernel-modules.c linux-proc-maps.c \
55                     dwfl_addrmodule.c dwfl_addrdwarf.c \
56                     cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
57                     dwfl_module_addrdie.c dwfl_addrdie.c \
58                     lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
59                     dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
60                     dwfl_getsrclines.c dwfl_onesrcline.c \
61                     dwfl_module_getsrc.c dwfl_getsrc.c \
62                     dwfl_module_getsrc_file.c \
63                     libdwfl_crc32.c libdwfl_crc32_file.c \
64                     elf-from-memory.c \
65                     dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
66                     dwfl_module_getsym.c \
67                     dwfl_module_addrname.c dwfl_module_addrsym.c \
68                     dwfl_module_return_value_location.c \
69                     dwfl_module_register_names.c \
70                     dwfl_segment_report_module.c \
71                     link_map.c core-file.c open.c image-header.c
72
73 if ZLIB
74 libdwfl_a_SOURCES += gzip.c
75 endif
76 if BZLIB
77 libdwfl_a_SOURCES += bzip2.c
78 endif
79 if LZMA
80 libdwfl_a_SOURCES += lzma.c
81 endif
82
83 if MUDFLAP
84 libdwfl = libdwfl.a $(libdw) $(libebl) $(libelf) $(libeu)
85 libdw = ../libdw/libdw.a
86 libelf = ../libelf/libelf.a
87 else
88 libdwfl = $(libdw)
89 libdw = ../libdw/libdw.so
90 libelf = ../libelf/libelf.so
91 endif
92 libebl = ../libebl/libebl.a
93 libeu = ../lib/libeu.a
94
95 if !MUDFLAP
96 libdwfl_pic_a_SOURCES =
97 am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
98 endif
99
100 noinst_HEADERS = libdwflP.h
101
102 CLEANFILES += $(am_libdwfl_pic_a_OBJECTS)