1 ## Process this file with automake to create Makefile.in 2 ## 3 ## Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008 Red Hat, Inc. 4 ## This file is part of Red Hat elfutils. 5 ## 6 ## Red Hat elfutils is free software; you can redistribute it and/or modify 7 ## it under the terms of the GNU General Public License as published by the 8 ## Free Software Foundation; version 2 of the License. 9 ## 10 ## Red Hat elfutils is distributed in the hope that it will be useful, but 11 ## WITHOUT ANY WARRANTY; without even the implied warranty of 12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 ## General Public License for more details. 14 ## 15 ## You should have received a copy of the GNU General Public License along 16 ## with Red Hat elfutils; if not, write to the Free Software Foundation, 17 ## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. 18 ## 19 ## Red Hat elfutils is an included package of the Open Invention Network. 20 ## An included package of the Open Invention Network is a package for which 21 ## Open Invention Network licensees cross-license their patents. No patent 22 ## license is granted, either expressly or impliedly, by designation as an 23 ## included package. Should you wish to participate in the Open Invention 24 ## Network licensing program, please visit www.openinventionnetwork.com 25 ## <http://www.openinventionnetwork.com>. 26 ## 27 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\" 28 if MUDFLAP 29 AM_CFLAGS = -fmudflap 30 else 31 AM_CFLAGS = 32 endif 33 AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \ 34 -std=gnu99 35 36 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \ 37 -I$(top_srcdir)/lib -I.. -I$(srcdir)/../libasm 38 VERSION = 1 39 PACKAGE_VERSION = @PACKAGE_VERSION@ 40 LIBEBL_SUBDIR = @LIBEBL_SUBDIR@ 41 42 lib_LIBRARIES = libebl.a 43 44 pkginclude_HEADERS = libebl.h 45 46 gen_SOURCES = eblopenbackend.c eblclosebackend.c eblstrtab.c \ 47 eblreloctypename.c eblsegmenttypename.c \ 48 eblsectiontypename.c eblmachineflagname.c \ 49 eblsymboltypename.c ebldynamictagname.c eblsectionname.c \ 50 eblobjecttypename.c eblsymbolbindingname.c \ 51 eblbackendname.c eblshflagscombine.c eblwstrtab.c \ 52 eblgstrtab.c eblosabiname.c \ 53 eblmachineflagcheck.c eblmachinesectionflagcheck.c \ 54 eblreloctypecheck.c eblrelocvaliduse.c eblrelocsimpletype.c \ 55 ebldynamictagcheck.c eblcorenotetypename.c eblobjnotetypename.c \ 56 eblcorenote.c eblobjnote.c ebldebugscnp.c \ 57 eblgotpcreloccheck.c eblcopyrelocp.c eblsectionstripp.c \ 58 eblelfclass.c eblelfdata.c eblelfmachine.c \ 59 ebl_check_special_symbol.c eblbsspltp.c eblretval.c \ 60 eblreginfo.c eblnonerelocp.c eblrelativerelocp.c \ 61 eblsysvhashentrysize.c eblauxvinfo.c eblcheckobjattr.c \ 62 ebl_check_special_section.c ebl_syscall_abi.c 63 64 libebl_a_SOURCES = $(gen_SOURCES) 65 66 67 %.os: %.c %.o 68 if $(COMPILE) -c -o $@ -fpic -DPIC -DSHARED -MT $@ -MD -MP \ 69 -MF "$(DEPDIR)/$*.Tpo" `test -f '$<' || echo '$(srcdir)/'`$<; \ 70 then cat "$(DEPDIR)/$*.Tpo" >> "$(DEPDIR)/$*.Po"; \ 71 rm -f "$(DEPDIR)/$*.Tpo"; \ 72 else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ 73 fi 74 75 noinst_HEADERS = libeblP.h ebl-hooks.h 76 77 CLEANFILES = $(am_libebl_pic_a_OBJECTS) *.gcno *.gcda 78