Home | History | Annotate | Download | only in libdwfl
      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 Red Hat elfutils.
      7 ##
      8 ## Red Hat elfutils is free software; you can redistribute it and/or modify
      9 ## it under the terms of the GNU General Public License as published by the
     10 ## Free Software Foundation; version 2 of the License.
     11 ##
     12 ## Red Hat elfutils is distributed in the hope that it will be useful, but
     13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
     14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     15 ## General Public License for more details.
     16 ##
     17 ## You should have received a copy of the GNU General Public License along
     18 ## with Red Hat elfutils; if not, write to the Free Software Foundation,
     19 ## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
     20 ##
     21 ## Red Hat elfutils is an included package of the Open Invention Network.
     22 ## An included package of the Open Invention Network is a package for which
     23 ## Open Invention Network licensees cross-license their patents.  No patent
     24 ## license is granted, either expressly or impliedly, by designation as an
     25 ## included package.  Should you wish to participate in the Open Invention
     26 ## Network licensing program, please visit www.openinventionnetwork.com
     27 ## <http://www.openinventionnetwork.com>.
     28 ##
     29 include $(top_srcdir)/config/eu.am
     30 INCLUDES += -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
     31 	   -I$(srcdir)/../libdw
     32 VERSION = 1
     33 
     34 noinst_LIBRARIES = libdwfl.a
     35 if !MUDFLAP
     36 noinst_LIBRARIES += libdwfl_pic.a
     37 endif
     38 
     39 pkginclude_HEADERS = libdwfl.h
     40 
     41 libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
     42 		    dwfl_module.c dwfl_report_elf.c relocate.c \
     43 		    dwfl_module_build_id.c dwfl_module_report_build_id.c \
     44 		    derelocate.c offline.c segment.c \
     45 		    dwfl_module_info.c dwfl_getmodules.c dwfl_getdwarf.c \
     46 		    dwfl_module_getdwarf.c dwfl_module_getelf.c \
     47 		    dwfl_validate_address.c \
     48 		    argp-std.c find-debuginfo.c \
     49 		    dwfl_build_id_find_elf.c \
     50 		    dwfl_build_id_find_debuginfo.c \
     51 		    linux-kernel-modules.c linux-proc-maps.c \
     52 		    dwfl_addrmodule.c dwfl_addrdwarf.c \
     53 		    cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
     54 		    dwfl_module_addrdie.c dwfl_addrdie.c \
     55 		    lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
     56 		    dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
     57 		    dwfl_getsrclines.c dwfl_onesrcline.c \
     58 		    dwfl_module_getsrc.c dwfl_getsrc.c \
     59 		    dwfl_module_getsrc_file.c \
     60 		    libdwfl_crc32.c libdwfl_crc32_file.c \
     61 		    elf-from-memory.c \
     62 		    dwfl_module_dwarf_cfi.c dwfl_module_eh_cfi.c \
     63 		    dwfl_module_getsym.c \
     64 		    dwfl_module_addrname.c dwfl_module_addrsym.c \
     65 		    dwfl_module_return_value_location.c \
     66 		    dwfl_module_register_names.c \
     67 		    dwfl_segment_report_module.c \
     68 		    link_map.c core-file.c open.c image-header.c
     69 
     70 if ZLIB
     71 libdwfl_a_SOURCES += gzip.c
     72 endif
     73 if BZLIB
     74 libdwfl_a_SOURCES += bzip2.c
     75 endif
     76 if LZMA
     77 libdwfl_a_SOURCES += lzma.c
     78 endif
     79 
     80 if MUDFLAP
     81 libdwfl = libdwfl.a $(libdw) $(libebl) $(libelf) $(libeu)
     82 libdw = ../libdw/libdw.a
     83 libelf = ../libelf/libelf.a
     84 else
     85 libdwfl = $(libdw)
     86 libdw = ../libdw/libdw.so
     87 libelf = ../libelf/libelf.so
     88 endif
     89 libebl = ../libebl/libebl.a
     90 libeu = ../lib/libeu.a
     91 
     92 if !MUDFLAP
     93 libdwfl_pic_a_SOURCES =
     94 am_libdwfl_pic_a_OBJECTS = $(libdwfl_a_SOURCES:.c=.os)
     95 endif
     96 
     97 noinst_HEADERS = libdwflP.h
     98 
     99 CLEANFILES += $(am_libdwfl_pic_a_OBJECTS)
    100