diff options
| author | Roland McGrath <[email protected]> | 2010-02-15 15:57:03 -0800 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-02-15 15:57:03 -0800 |
| commit | 22359e265395fd2f8267190ef97f5417770e6206 (patch) | |
| tree | a5503a61fed410b3585d6d9bbc3cd5852668c80f /backends | |
| parent | bf96347e884ee37eee3fdacdf2a616f6856e1e49 (diff) | |
Clean up and consolidate automake magic to reduce duplication and to work with --disable-dependency-tracking.
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/ChangeLog | 4 | ||||
| -rw-r--r-- | backends/Makefile.am | 34 |
2 files changed, 10 insertions, 28 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index b52d75dd..ff32f3c2 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,7 @@ +2010-02-15 Roland McGrath <[email protected]> + + * Makefile.am: Use config/eu.am for common stuff. + 2010-01-05 Roland McGrath <[email protected]> * arm_retval.c (arm_return_value_location): Use dwarf_aggregate_size. diff --git a/backends/Makefile.am b/backends/Makefile.am index 2aed6216..d859cc97 100644 --- a/backends/Makefile.am +++ b/backends/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to create Makefile.in ## -## Copyright (C) 2000-2009 Red Hat, Inc. +## Copyright (C) 2000-2010 Red Hat, Inc. ## This file is part of Red Hat elfutils. ## ## Red Hat elfutils is free software; you can redistribute it and/or modify @@ -24,17 +24,9 @@ ## Network licensing program, please visit www.openinventionnetwork.com ## <http://www.openinventionnetwork.com>. ## -DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\" -if MUDFLAP -AM_CFLAGS = -fmudflap -else -AM_CFLAGS = -endif -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \ - -std=gnu99 -INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ - -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \ - -I$(top_srcdir)/lib -I.. +include $(top_srcdir)/config/eu.am +INCLUDES += -I$(top_srcdir)/libebl -I$(top_srcdir)/libasm \ + -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw modules = i386 sh x86_64 ia64 alpha arm sparc ppc ppc64 s390 @@ -49,17 +41,11 @@ noinst_DATA = $(libebl_pic:_pic.a=.so) if MUDFLAP libelf = ../libelf/libelf.a libdw = ../libdw/libdw.a -libmudflap = -lmudflap else libelf = ../libelf/libelf.so libdw = ../libdw/libdw.so -libmudflap = endif - -textrel_check = if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi - - i386_SRCS = i386_init.c i386_symbol.c i386_corenote.c i386_cfi.c \ i386_retval.c i386_regs.c i386_auxv.c i386_syscall.c cpu_i386 = ../libcpu/libcpu_i386.a @@ -125,13 +111,6 @@ libebl_x86_64.so: $(cpu_x86_64) libebl_%.map: Makefile echo 'ELFUTILS_$(PACKAGE_VERSION) { global: $*_init; local: *; };' > $@ -%.os: %.c - if $(COMPILE) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \ - -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \ - then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ - else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ - fi - install: install-am install-ebl-modules install-ebl-modules: $(mkinstalldirs) $(DESTDIR)$(libdir)/$(LIBEBL_SUBDIR) @@ -150,6 +129,5 @@ uninstall: uninstall-am noinst_HEADERS = libebl_CPU.h common-reloc.c linux-core-note.c x86_corenote.c EXTRA_DIST = $(foreach m,$(modules),$($(m)_SRCS)) $(modules:=_reloc.def) -CLEANFILES = *.gcno *.gcda \ - $(foreach m,$(modules),\ - libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS)) +CLEANFILES += $(foreach m,$(modules),\ + libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS)) |
