Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 1 | ## Makefile.am for libdwfl library subdirectory in elfutils. |
| 2 | ## |
| 3 | ## Process this file with automake to create Makefile.in |
| 4 | ## |
Roland McGrath | 22359e2 | 2010-02-15 15:57:03 -0800 | [diff] [blame] | 5 | ## Copyright (C) 2005-2010 Red Hat, Inc. |
Mark Wielaard | de2ed97 | 2012-06-05 17:15:16 +0200 | [diff] [blame] | 6 | ## This file is part of elfutils. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 7 | ## |
Mark Wielaard | de2ed97 | 2012-06-05 17:15:16 +0200 | [diff] [blame] | 8 | ## This file is free software; you can redistribute it and/or modify |
| 9 | ## it under the terms of either |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 10 | ## |
Mark Wielaard | de2ed97 | 2012-06-05 17:15:16 +0200 | [diff] [blame] | 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 |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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 | ## |
Mark Wielaard | de2ed97 | 2012-06-05 17:15:16 +0200 | [diff] [blame] | 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/>. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 31 | ## |
Roland McGrath | 22359e2 | 2010-02-15 15:57:03 -0800 | [diff] [blame] | 32 | include $(top_srcdir)/config/eu.am |
| 33 | INCLUDES += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \ |
| 34 | -I$(srcdir)/../libdw |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 35 | VERSION = 1 |
| 36 | |
Ulrich Drepper | 282bf32 | 2005-07-28 21:49:05 +0000 | [diff] [blame] | 37 | noinst_LIBRARIES = libdwfl.a |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 38 | if !MUDFLAP |
Ulrich Drepper | 282bf32 | 2005-07-28 21:49:05 +0000 | [diff] [blame] | 39 | noinst_LIBRARIES += libdwfl_pic.a |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 40 | endif |
| 41 | |
Ulrich Drepper | e219f1c | 2008-01-09 05:49:49 +0000 | [diff] [blame] | 42 | pkginclude_HEADERS = libdwfl.h |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 43 | |
Roland McGrath | 0833312 | 2006-02-27 04:54:26 +0000 | [diff] [blame] | 44 | libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 45 | dwfl_module.c dwfl_report_elf.c relocate.c \ |
Roland McGrath | 59ea7f3 | 2007-10-04 08:50:09 +0000 | [diff] [blame] | 46 | dwfl_module_build_id.c dwfl_module_report_build_id.c \ |
Roland McGrath | b4d6f0f | 2008-08-25 22:55:17 +0000 | [diff] [blame] | 47 | derelocate.c offline.c segment.c \ |
Roland McGrath | a605a3c | 2009-04-19 18:27:01 -0700 | [diff] [blame] | 48 | dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \ |
| 49 | dwfl_module_getdwarf.c dwfl_module_getelf.c \ |
Roland McGrath | d17fac7 | 2005-08-23 08:20:21 +0000 | [diff] [blame] | 50 | dwfl_validate_address.c \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 51 | argp-std.c find-debuginfo.c \ |
Roland McGrath | 59ea7f3 | 2007-10-04 08:50:09 +0000 | [diff] [blame] | 52 | dwfl_build_id_find_elf.c \ |
| 53 | dwfl_build_id_find_debuginfo.c \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 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 \ |
Ulrich Drepper | e1812e1 | 2006-07-12 07:46:03 +0000 | [diff] [blame] | 58 | lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \ |
Roland McGrath | de44f13 | 2010-08-24 15:38:42 -0700 | [diff] [blame] | 59 | dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \ |
Roland McGrath | d17fac7 | 2005-08-23 08:20:21 +0000 | [diff] [blame] | 60 | dwfl_getsrclines.c dwfl_onesrcline.c \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 61 | dwfl_module_getsrc.c dwfl_getsrc.c \ |
| 62 | dwfl_module_getsrc_file.c \ |
Ulrich Drepper | 18618fd | 2005-07-28 21:29:22 +0000 | [diff] [blame] | 63 | libdwfl_crc32.c libdwfl_crc32_file.c \ |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 64 | elf-from-memory.c \ |
Roland McGrath | 3c84db3 | 2009-06-24 17:41:40 -0700 | [diff] [blame] | 65 | dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \ |
Ulrich Drepper | 6258e74 | 2007-03-13 06:22:40 +0000 | [diff] [blame] | 66 | dwfl_module_getsym.c \ |
| 67 | dwfl_module_addrname.c dwfl_module_addrsym.c \ |
Roland McGrath | 994b489 | 2005-12-05 22:46:21 +0000 | [diff] [blame] | 68 | dwfl_module_return_value_location.c \ |
Roland McGrath | b4d6f0f | 2008-08-25 22:55:17 +0000 | [diff] [blame] | 69 | dwfl_module_register_names.c \ |
| 70 | dwfl_segment_report_module.c \ |
Roland McGrath | 6bb9071 | 2009-08-27 12:36:47 -0700 | [diff] [blame] | 71 | link_map.c core-file.c open.c image-header.c |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 72 | |
Roland McGrath | bca4315 | 2009-01-05 23:59:32 -0800 | [diff] [blame] | 73 | if ZLIB |
| 74 | libdwfl_a_SOURCES += gzip.c |
| 75 | endif |
| 76 | if BZLIB |
| 77 | libdwfl_a_SOURCES += bzip2.c |
| 78 | endif |
Roland McGrath | 2416964 | 2009-08-26 02:26:34 -0700 | [diff] [blame] | 79 | if LZMA |
| 80 | libdwfl_a_SOURCES += lzma.c |
| 81 | endif |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 82 | |
| 83 | if MUDFLAP |
| 84 | libdwfl = libdwfl.a $(libdw) $(libebl) $(libelf) $(libeu) |
| 85 | libdw = ../libdw/libdw.a |
| 86 | libelf = ../libelf/libelf.a |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 87 | else |
Roland McGrath | 1838590 | 2005-07-28 07:12:38 +0000 | [diff] [blame] | 88 | libdwfl = $(libdw) |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 89 | libdw = ../libdw/libdw.so |
| 90 | libelf = ../libelf/libelf.so |
| 91 | endif |
| 92 | libebl = ../libebl/libebl.a |
| 93 | libeu = ../lib/libeu.a |
| 94 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 95 | if !MUDFLAP |
| 96 | libdwfl_pic_a_SOURCES = |
| 97 | am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os) |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 98 | endif |
| 99 | |
Roland McGrath | 83fcb48 | 2005-08-02 00:58:33 +0000 | [diff] [blame] | 100 | noinst_HEADERS = libdwflP.h |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 101 | |
Roland McGrath | 22359e2 | 2010-02-15 15:57:03 -0800 | [diff] [blame] | 102 | CLEANFILES += $(am_libdwfl_pic_a_OBJECTS) |