• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, 2013 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##
32include $(top_srcdir)/config/eu.am
33AM_CPPFLAGS += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
34	   -I$(srcdir)/../libdw -I$(srcdir)/../libdwelf
35VERSION = 1
36
37noinst_LIBRARIES = libdwfl.a
38noinst_LIBRARIES += libdwfl_pic.a
39
40pkginclude_HEADERS = libdwfl.h
41
42libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
43		    dwfl_module.c dwfl_report_elf.c relocate.c \
44		    dwfl_module_build_id.c dwfl_module_report_build_id.c \
45		    derelocate.c offline.c segment.c \
46		    dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \
47		    dwfl_module_getdwarf.c dwfl_module_getelf.c \
48		    dwfl_validate_address.c \
49		    argp-std.c find-debuginfo.c \
50		    dwfl_build_id_find_elf.c \
51		    dwfl_build_id_find_debuginfo.c \
52		    linux-kernel-modules.c linux-proc-maps.c \
53		    dwfl_addrmodule.c dwfl_addrdwarf.c \
54		    cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
55		    dwfl_module_addrdie.c dwfl_addrdie.c \
56		    lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
57		    dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
58		    dwfl_getsrclines.c dwfl_onesrcline.c \
59		    dwfl_module_getsrc.c dwfl_getsrc.c \
60		    dwfl_module_getsrc_file.c \
61		    libdwfl_crc32.c libdwfl_crc32_file.c \
62		    elf-from-memory.c \
63		    dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
64		    dwfl_module_getsym.c \
65		    dwfl_module_addrname.c dwfl_module_addrsym.c \
66		    dwfl_module_return_value_location.c \
67		    dwfl_module_register_names.c \
68		    dwfl_segment_report_module.c \
69		    link_map.c core-file.c open.c image-header.c \
70		    dwfl_frame.c frame_unwind.c dwfl_frame_pc.c \
71		    linux-pid-attach.c linux-core-attach.c dwfl_frame_regs.c \
72		    gzip.c
73
74if BZLIB
75libdwfl_a_SOURCES += bzip2.c
76endif
77if LZMA
78libdwfl_a_SOURCES += lzma.c
79endif
80
81libdwfl = $(libdw)
82libdw = ../libdw/libdw.so
83libelf = ../libelf/libelf.so
84libebl = ../libebl/libebl.a
85libeu = ../lib/libeu.a
86
87libdwfl_pic_a_SOURCES =
88am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
89
90noinst_HEADERS = libdwflP.h
91
92CLEANFILES += $(am_libdwfl_pic_a_OBJECTS)
93