|
Packit |
032894 |
## Process this file with automake to create Makefile.in
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## Copyright (C) 2002-2010 Red Hat, Inc.
|
|
Packit |
032894 |
## This file is part of elfutils.
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## This file is free software; you can redistribute it and/or modify
|
|
Packit |
032894 |
## it under the terms of either
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## * the GNU Lesser General Public License as published by the Free
|
|
Packit |
032894 |
## Software Foundation; either version 3 of the License, or (at
|
|
Packit |
032894 |
## your option) any later version
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## or
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## * the GNU General Public License as published by the Free
|
|
Packit |
032894 |
## Software Foundation; either version 2 of the License, or (at
|
|
Packit |
032894 |
## your option) any later version
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## or both in parallel, as here.
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## elfutils is distributed in the hope that it will be useful, but
|
|
Packit |
032894 |
## WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
032894 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
032894 |
## General Public License for more details.
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
## You should have received copies of the GNU General Public License and
|
|
Packit |
032894 |
## the GNU Lesser General Public License along with this program. If
|
|
Packit |
032894 |
## not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
032894 |
##
|
|
Packit |
032894 |
include $(top_srcdir)/config/eu.am
|
|
Packit |
032894 |
AM_CPPFLAGS += -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw -I$(top_srcdir)/libdwelf
|
|
Packit |
032894 |
|
|
Packit |
032894 |
GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
|
|
Packit |
032894 |
VERSION = 1
|
|
Packit |
032894 |
|
|
Packit |
032894 |
lib_LIBRARIES = libasm.a
|
|
Packit |
032894 |
noinst_LIBRARIES = libasm_pic.a
|
|
Packit |
032894 |
noinst_PROGRAMS = $(noinst_LIBRARIES:_pic.a=.so)
|
|
Packit |
032894 |
pkginclude_HEADERS = libasm.h
|
|
Packit |
032894 |
|
|
Packit |
032894 |
libasm_a_SOURCES = asm_begin.c asm_abort.c asm_end.c asm_error.c \
|
|
Packit |
032894 |
asm_getelf.c asm_newscn.c asm_newscn_ingrp.c \
|
|
Packit |
032894 |
asm_newsubscn.c asm_newsym.c asm_newcomsym.c \
|
|
Packit |
032894 |
asm_newabssym.c \
|
|
Packit |
032894 |
asm_newscngrp.c asm_scngrp_newsignature.c \
|
|
Packit |
032894 |
asm_fill.c asm_align.c asm_addstrz.c \
|
|
Packit |
032894 |
asm_addint8.c asm_adduint8.c \
|
|
Packit |
032894 |
asm_addint16.c asm_adduint16.c \
|
|
Packit |
032894 |
asm_addint32.c asm_adduint32.c \
|
|
Packit |
032894 |
asm_addint64.c asm_adduint64.c \
|
|
Packit |
032894 |
asm_adduleb128.c asm_addsleb128.c \
|
|
Packit |
032894 |
disasm_begin.c disasm_cb.c disasm_end.c disasm_str.c \
|
|
Packit |
032894 |
symbolhash.c
|
|
Packit |
032894 |
|
|
Packit |
032894 |
libasm_pic_a_SOURCES =
|
|
Packit |
032894 |
am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)
|
|
Packit |
032894 |
|
|
Packit |
032894 |
libasm_so_DEPS = ../lib/libeu.a ../libebl/libebl_pic.a ../libelf/libelf.so ../libdw/libdw.so
|
|
Packit |
032894 |
libasm_so_LDLIBS = $(libasm_so_DEPS)
|
|
Packit |
032894 |
if USE_LOCKS
|
|
Packit |
032894 |
libasm_so_LDLIBS += -lpthread
|
|
Packit |
032894 |
endif
|
|
Packit |
032894 |
|
|
Packit |
032894 |
libasm_so_LIBS = libasm_pic.a
|
|
Packit |
032894 |
libasm_so_SOURCES =
|
|
Packit |
032894 |
libasm.so$(EXEEXT): $(srcdir)/libasm.map $(libasm_so_LIBS) $(libasm_so_DEPS)
|
|
Packit |
032894 |
$(AM_V_CCLD)$(LINK) $(dso_LDFLAGS) -o $@ \
|
|
Packit |
032894 |
-Wl,--soname,$@.$(VERSION) \
|
|
Packit |
032894 |
-Wl,--version-script,$<,--no-undefined \
|
|
Packit |
032894 |
-Wl,--whole-archive $(libasm_so_LIBS) -Wl,--no-whole-archive \
|
|
Packit |
032894 |
$(libasm_so_LDLIBS)
|
|
Packit |
032894 |
@$(textrel_check)
|
|
Packit |
032894 |
$(AM_V_at)ln -fs $@ $@.$(VERSION)
|
|
Packit |
032894 |
|
|
Packit |
032894 |
install: install-am libasm.so
|
|
Packit |
032894 |
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
|
Packit |
032894 |
$(INSTALL_PROGRAM) libasm.so $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
|
|
Packit |
032894 |
ln -fs libasm-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
|
|
Packit |
032894 |
ln -fs libasm.so.$(VERSION) $(DESTDIR)$(libdir)/libasm.so
|
|
Packit |
032894 |
|
|
Packit |
032894 |
uninstall: uninstall-am
|
|
Packit |
032894 |
rm -f $(DESTDIR)$(libdir)/libasm-$(PACKAGE_VERSION).so
|
|
Packit |
032894 |
rm -f $(DESTDIR)$(libdir)/libasm.so.$(VERSION)
|
|
Packit |
032894 |
rm -f $(DESTDIR)$(libdir)/libasm.so
|
|
Packit |
032894 |
rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir)/elfutils
|
|
Packit |
032894 |
|
|
Packit |
032894 |
noinst_HEADERS = libasmP.h symbolhash.h
|
|
Packit |
032894 |
EXTRA_DIST = libasm.map
|
|
Packit |
032894 |
|
|
Packit |
032894 |
CLEANFILES += $(am_libasm_pic_a_OBJECTS) libasm.so.$(VERSION)
|