blob: 0ef492855801bbe48c431d4bc14e1ae38b399da5 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001## Makefile.am for libdwfl library subdirectory in elfutils.
2##
3## Process this file with automake to create Makefile.in
4##
Roland McGrath22359e22010-02-15 15:57:03 -08005## Copyright (C) 2005-2010 Red Hat, Inc.
Mark Wielaardde2ed972012-06-05 17:15:16 +02006## This file is part of elfutils.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00007##
Mark Wielaardde2ed972012-06-05 17:15:16 +02008## This file is free software; you can redistribute it and/or modify
9## it under the terms of either
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000010##
Mark Wielaardde2ed972012-06-05 17:15:16 +020011## * 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
Ulrich Drepper361df7d2006-04-04 21:38:57 +000024## 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##
Mark Wielaardde2ed972012-06-05 17:15:16 +020028## 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/>.
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000031##
Roland McGrath22359e22010-02-15 15:57:03 -080032include $(top_srcdir)/config/eu.am
33INCLUDES += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
34 -I$(srcdir)/../libdw
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000035VERSION = 1
36
Ulrich Drepper282bf322005-07-28 21:49:05 +000037noinst_LIBRARIES = libdwfl.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000038if !MUDFLAP
Ulrich Drepper282bf322005-07-28 21:49:05 +000039noinst_LIBRARIES += libdwfl_pic.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000040endif
41
Ulrich Dreppere219f1c2008-01-09 05:49:49 +000042pkginclude_HEADERS = libdwfl.h
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000043
Roland McGrath08333122006-02-27 04:54:26 +000044libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000045 dwfl_module.c dwfl_report_elf.c relocate.c \
Roland McGrath59ea7f32007-10-04 08:50:09 +000046 dwfl_module_build_id.c dwfl_module_report_build_id.c \
Roland McGrathb4d6f0f2008-08-25 22:55:17 +000047 derelocate.c offline.c segment.c \
Roland McGratha605a3c2009-04-19 18:27:01 -070048 dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \
49 dwfl_module_getdwarf.c dwfl_module_getelf.c \
Roland McGrathd17fac72005-08-23 08:20:21 +000050 dwfl_validate_address.c \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000051 argp-std.c find-debuginfo.c \
Roland McGrath59ea7f32007-10-04 08:50:09 +000052 dwfl_build_id_find_elf.c \
53 dwfl_build_id_find_debuginfo.c \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000054 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 \
Ulrich Dreppere1812e12006-07-12 07:46:03 +000058 lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
Roland McGrathde44f132010-08-24 15:38:42 -070059 dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
Roland McGrathd17fac72005-08-23 08:20:21 +000060 dwfl_getsrclines.c dwfl_onesrcline.c \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000061 dwfl_module_getsrc.c dwfl_getsrc.c \
62 dwfl_module_getsrc_file.c \
Ulrich Drepper18618fd2005-07-28 21:29:22 +000063 libdwfl_crc32.c libdwfl_crc32_file.c \
Roland McGrathe47ab762005-11-17 03:16:00 +000064 elf-from-memory.c \
Roland McGrath3c84db32009-06-24 17:41:40 -070065 dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
Ulrich Drepper6258e742007-03-13 06:22:40 +000066 dwfl_module_getsym.c \
67 dwfl_module_addrname.c dwfl_module_addrsym.c \
Roland McGrath994b4892005-12-05 22:46:21 +000068 dwfl_module_return_value_location.c \
Roland McGrathb4d6f0f2008-08-25 22:55:17 +000069 dwfl_module_register_names.c \
70 dwfl_segment_report_module.c \
Roland McGrath6bb90712009-08-27 12:36:47 -070071 link_map.c core-file.c open.c image-header.c
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000072
Roland McGrathbca43152009-01-05 23:59:32 -080073if ZLIB
74libdwfl_a_SOURCES += gzip.c
75endif
76if BZLIB
77libdwfl_a_SOURCES += bzip2.c
78endif
Roland McGrath24169642009-08-26 02:26:34 -070079if LZMA
80libdwfl_a_SOURCES += lzma.c
81endif
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000082
83if MUDFLAP
84libdwfl = libdwfl.a $(libdw) $(libebl) $(libelf) $(libeu)
85libdw = ../libdw/libdw.a
86libelf = ../libelf/libelf.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000087else
Roland McGrath18385902005-07-28 07:12:38 +000088libdwfl = $(libdw)
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000089libdw = ../libdw/libdw.so
90libelf = ../libelf/libelf.so
91endif
92libebl = ../libebl/libebl.a
93libeu = ../lib/libeu.a
94
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000095if !MUDFLAP
96libdwfl_pic_a_SOURCES =
97am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000098endif
99
Roland McGrath83fcb482005-08-02 00:58:33 +0000100noinst_HEADERS = libdwflP.h
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000101
Roland McGrath22359e22010-02-15 15:57:03 -0800102CLEANFILES += $(am_libdwfl_pic_a_OBJECTS)