Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 1 | ## Process this file with automake to create Makefile.in |
| 2 | ## |
Roland McGrath | 4b248ce | 2006-01-12 03:34:38 +0000 | [diff] [blame] | 3 | ## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006 Red Hat, Inc. |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 4 | ## This file is part of Red Hat elfutils. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 5 | ## |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 9 | ## |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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, |
Ulrich Drepper | 1e9ef50 | 2006-04-04 22:29:06 +0000 | [diff] [blame] | 17 | ## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. |
Ulrich Drepper | 361df7d | 2006-04-04 21:38:57 +0000 | [diff] [blame] | 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>. |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 26 | ## |
| 27 | DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE |
| 28 | if MUDFLAP |
| 29 | AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\ |
| 30 | $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 31 | BUILD_RPATH = \$$ORIGIN/../backends |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 32 | else |
| 33 | AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \ |
| 34 | $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 35 | BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 36 | endif |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 37 | |
Roland McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 38 | AM_LDFLAGS = |
| 39 | |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 40 | if !STANDALONE |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 41 | INCLUDES = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \ |
Roland McGrath | 1838590 | 2005-07-28 07:12:38 +0000 | [diff] [blame] | 42 | -I$(top_srcdir)/libdwfl \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 43 | -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \ |
| 44 | -I$(top_srcdir)/lib -I.. |
Roland McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 45 | AM_LDFLAGS += -Wl,-rpath-link,../libasm:../libdw:../libelf |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 46 | endif !STANDALONE |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 47 | |
Roland McGrath | 1b8b446 | 2005-11-16 01:33:38 +0000 | [diff] [blame] | 48 | if TESTS_RPATH |
Roland McGrath | dd7e22b | 2006-03-09 23:05:47 +0000 | [diff] [blame] | 49 | AM_LDFLAGS += -Wl,-rpath,$(BUILT_RPATH) |
Roland McGrath | 1b8b446 | 2005-11-16 01:33:38 +0000 | [diff] [blame] | 50 | tests_rpath = yes |
| 51 | else |
| 52 | tests_rpath = no |
| 53 | endif |
| 54 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 55 | noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ |
| 56 | showptable update1 update2 update3 update4 test-nlist \ |
| 57 | show-die-info get-files get-lines get-pubnames \ |
Roland McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 58 | get-aranges allfcts line2addr addrscopes funcscopes \ |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 59 | show-abbrev hash newscn ecp dwflmodtest \ |
Ulrich Drepper | ba718b1 | 2006-04-04 21:31:16 +0000 | [diff] [blame] | 60 | find-prologues funcretval allregs rdwrmmap |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 61 | # get-ciefde |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 62 | asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \ |
| 63 | asm-tst6 asm-tst7 asm-tst8 asm-tst9 |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 64 | |
| 65 | TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ |
| 66 | update1 update2 update3 update4 \ |
| 67 | run-show-die-info.sh run-get-files.sh run-get-lines.sh \ |
| 68 | run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \ |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 69 | run-show-abbrev.sh run-line2addr.sh hash \ |
| 70 | newscn run-strip-test.sh run-strip-test2.sh \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 71 | run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \ |
| 72 | run-strip-test6.sh run-ecp-test.sh run-ecp-test2.sh \ |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 73 | run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \ |
Roland McGrath | f5fda7d | 2005-08-18 22:01:57 +0000 | [diff] [blame] | 74 | run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \ |
Roland McGrath | 07d4f2f | 2005-10-28 06:56:24 +0000 | [diff] [blame] | 75 | run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ |
Roland McGrath | 94d26ad | 2005-12-13 23:24:37 +0000 | [diff] [blame] | 76 | run-find-prologues.sh run-allregs.sh run-readelf-test1.sh \ |
Ulrich Drepper | ba718b1 | 2006-04-04 21:31:16 +0000 | [diff] [blame] | 77 | run-native-test.sh run-bug1-test.sh |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 78 | # run-show-ciefde.sh |
| 79 | |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 80 | if !STANDALONE |
| 81 | noinst_PROGRAMS += msg_tst |
| 82 | TESTS += msg_tst |
| 83 | endif |
| 84 | |
| 85 | if HAVE_LIBASM |
| 86 | noinst_PROGRAMS += $(asm_TESTS) |
| 87 | TESTS += $(asm_TESTS) |
| 88 | endif |
| 89 | |
| 90 | |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 91 | EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ |
| 92 | run-show-die-info.sh run-get-files.sh run-get-lines.sh \ |
| 93 | run-get-pubnames.sh run-get-aranges.sh \ |
| 94 | run-show-ciefde.sh run-show-abbrev.sh run-strip-test.sh \ |
| 95 | run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \ |
| 96 | testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \ |
| 97 | testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \ |
| 98 | testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \ |
| 99 | testfile13.bz2 run-strip-test3.sh run-allfcts.sh \ |
| 100 | run-line2addr.sh run-elflint-test.sh testfile14.bz2 \ |
| 101 | run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \ |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 102 | run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \ |
| 103 | run-ranlib-test3.sh run-ranlib-test4.sh \ |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 104 | run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ |
Roland McGrath | 94d26ad | 2005-12-13 23:24:37 +0000 | [diff] [blame] | 105 | run-find-prologues.sh run-allregs.sh run-native-test.sh \ |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 106 | testfile15.bz2 testfile15.debug.bz2 \ |
| 107 | testfile16.bz2 testfile16.debug.bz2 \ |
| 108 | testfile17.bz2 testfile17.debug.bz2 \ |
Ulrich Drepper | e48c05b | 2005-08-15 21:47:33 +0000 | [diff] [blame] | 109 | testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \ |
Ulrich Drepper | 5d83229 | 2005-08-15 21:36:27 +0000 | [diff] [blame] | 110 | testfile20.bz2 testfile20.index.bz2 \ |
Roland McGrath | f5fda7d | 2005-08-18 22:01:57 +0000 | [diff] [blame] | 111 | testfile21.bz2 testfile21.index.bz2 \ |
Ulrich Drepper | 39cec7a | 2005-08-30 01:22:01 +0000 | [diff] [blame] | 112 | testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \ |
Roland McGrath | 4b248ce | 2006-01-12 03:34:38 +0000 | [diff] [blame] | 113 | testfile26.bz2 testfile27.bz2 \ |
Ulrich Drepper | ba718b1 | 2006-04-04 21:31:16 +0000 | [diff] [blame] | 114 | coverage.sh test-subr.sh test-wrapper.sh run-readelf-test1.sh \ |
Roland McGrath | b437972 | 2006-04-05 01:35:26 +0000 | [diff] [blame] | 115 | run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \ |
| 116 | testfile29.bz2 testfile29.rdwr.bz2 |
Roland McGrath | 1b8b446 | 2005-11-16 01:33:38 +0000 | [diff] [blame] | 117 | |
Roland McGrath | af74f5c | 2005-11-18 02:25:14 +0000 | [diff] [blame] | 118 | installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \ |
| 119 | bindir=$(DESTDIR)$(bindir) \ |
| 120 | $(srcdir)/test-wrapper.sh \ |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 121 | installed $(tests_rpath) \ |
| 122 | $(program_transform_name) |
| 123 | if STANDALONE |
| 124 | TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT) |
| 125 | else !STANDALONE |
Roland McGrath | 1b8b446 | 2005-11-16 01:33:38 +0000 | [diff] [blame] | 126 | TESTS_ENVIRONMENT = $(srcdir)/test-wrapper.sh \ |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 127 | ../libdw:../backends:../libelf:../libasm |
Roland McGrath | 1b8b446 | 2005-11-16 01:33:38 +0000 | [diff] [blame] | 128 | |
| 129 | installcheck-local: |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 130 | $(MAKE) $(AM_MAKEFLAGS) \ |
Roland McGrath | 575dd39 | 2005-11-18 01:41:52 +0000 | [diff] [blame] | 131 | TESTS_ENVIRONMENT='$(installed_TESTS_ENVIRONMENT)' check-TESTS |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 132 | endif !STANDALONE |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 133 | |
| 134 | if MUDFLAP |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 135 | static_build=yes |
| 136 | libmudflap = -lmudflap |
| 137 | endif |
| 138 | |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 139 | if STANDALONE |
| 140 | libdw = -ldw |
| 141 | libelf = -lelf |
| 142 | libasm = -lasm |
| 143 | libebl = -lebl |
| 144 | else !STANDALONE |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 145 | if BUILD_STATIC |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 146 | libdw = ../libdw/libdw.a $(libelf) $(libebl) -ldl |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 147 | libelf = ../libelf/libelf.a |
| 148 | libasm = ../libasm/libasm.a |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 149 | else |
| 150 | libdw = ../libdw/libdw.so |
| 151 | libelf = ../libelf/libelf.so |
| 152 | libasm = ../libasm/libasm.so |
| 153 | endif |
| 154 | libebl = ../libebl/libebl.a |
Roland McGrath | d7f8d0c | 2005-11-17 02:32:03 +0000 | [diff] [blame] | 155 | endif !STANDALONE |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 156 | |
| 157 | arextract_LDADD = $(libelf) $(libmudflap) |
| 158 | arsymtest_LDADD = $(libelf) $(libmudflap) |
| 159 | newfile_LDADD = $(libelf) $(libmudflap) |
| 160 | saridx_LDADD = $(libelf) $(libmudflap) |
| 161 | scnnames_LDADD = $(libelf) $(libmudflap) |
| 162 | sectiondump_LDADD = $(libelf) $(libmudflap) |
| 163 | showptable_LDADD = $(libelf) $(libmudflap) |
| 164 | hash_LDADD = $(libelf) $(libmudflap) |
| 165 | test_nlist_LDADD = $(libelf) $(libmudflap) |
| 166 | msg_tst_LDADD = $(libelf) $(libmudflap) |
| 167 | newscn_LDADD = $(libelf) $(libmudflap) |
| 168 | ecp_LDADD = $(libelf) $(libmudflap) |
| 169 | update1_LDADD = $(libelf) $(libmudflap) |
| 170 | update2_LDADD = $(libelf) $(libmudflap) |
| 171 | update3_LDADD = $(libebl) $(libelf) $(libmudflap) |
| 172 | update4_LDADD = $(libebl) $(libelf) $(libmudflap) |
| 173 | show_die_info_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 174 | get_pubnames_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 175 | show_abbrev_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 176 | get_lines_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 177 | get_files_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 178 | get_aranges_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 179 | allfcts_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 180 | line2addr_no_Wformat = yes |
Roland McGrath | d17fac7 | 2005-08-23 08:20:21 +0000 | [diff] [blame] | 181 | line2addr_LDADD = $(libdw) $(libmudflap) |
Roland McGrath | 9a1f365 | 2005-08-18 20:57:04 +0000 | [diff] [blame] | 182 | addrscopes_LDADD = $(libdw) $(libmudflap) |
Roland McGrath | 71e15a0 | 2005-08-27 10:33:26 +0000 | [diff] [blame] | 183 | funcscopes_LDADD = $(libdw) $(libmudflap) |
Roland McGrath | e47ab76 | 2005-11-17 03:16:00 +0000 | [diff] [blame] | 184 | funcretval_LDADD = $(libdw) $(libmudflap) |
Roland McGrath | 994b489 | 2005-12-05 22:46:21 +0000 | [diff] [blame] | 185 | allregs_LDADD = $(libdw) $(libmudflap) |
Roland McGrath | 07d4f2f | 2005-10-28 06:56:24 +0000 | [diff] [blame] | 186 | find_prologues_LDADD = $(libdw) $(libmudflap) |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 187 | #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) $(libmudflap) |
Ulrich Drepper | a38998e | 2005-08-03 02:05:39 +0000 | [diff] [blame] | 188 | asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 189 | asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 190 | asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 191 | asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 192 | asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 193 | asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 194 | asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 195 | asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
| 196 | asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl |
Ulrich Drepper | 47be795 | 2005-08-07 04:41:39 +0000 | [diff] [blame] | 197 | dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl |
Ulrich Drepper | ba718b1 | 2006-04-04 21:31:16 +0000 | [diff] [blame] | 198 | rdwrmmap_LDADD = $(libelf) |
Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame] | 199 | |
Ulrich Drepper | fbe998a | 2005-08-29 16:27:10 +0000 | [diff] [blame] | 200 | CLEANFILES = xxx *.gcno *.gcda *gconv |
Ulrich Drepper | 39cec7a | 2005-08-30 01:22:01 +0000 | [diff] [blame] | 201 | |
| 202 | if GCOV |
| 203 | check: check-am coverage |
| 204 | .PHONY: coverage |
| 205 | coverage: |
| 206 | -$(srcdir)/coverage.sh |
| 207 | endif |