1## Process this file with automake to create Makefile.in 2## 3## Copyright (C) 1996-2015 Red Hat, Inc. 4## This file is part of elfutils. 5## 6## This file is free software; you can redistribute it and/or modify 7## it under the terms of the GNU General Public License as published by 8## the Free Software Foundation; either version 3 of the License, or 9## (at your option) any later version. 10## 11## elfutils is distributed in the hope that it will be useful, but 12## WITHOUT ANY WARRANTY; without even the implied warranty of 13## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14## GNU General Public License for more details. 15## 16## You should have received a copy of the GNU General Public License 17## along with this program. If not, see <http://www.gnu.org/licenses/>. 18## 19include $(top_srcdir)/config/eu.am 20BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf 21 22AM_LDFLAGS = 23 24if !STANDALONE 25AM_CPPFLAGS += -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \ 26 -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \ 27 -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \ 28 -I$(top_srcdir)/lib -I.. 29AM_LDFLAGS += -Wl,-rpath-link,../libasm:../libdw:../libelf 30endif 31 32if TESTS_RPATH 33AM_LDFLAGS += -Wl,-rpath,$(BUILD_RPATH) 34tests_rpath = yes 35else 36tests_rpath = no 37endif 38 39check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ 40 showptable update1 update2 update3 update4 test-nlist \ 41 show-die-info get-files get-lines get-pubnames \ 42 get-aranges allfcts line2addr addrscopes funcscopes \ 43 show-abbrev hash newscn ecp dwflmodtest \ 44 find-prologues funcretval allregs rdwrmmap \ 45 dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \ 46 dwfl-addr-sect dwfl-bug-report early-offscn \ 47 dwfl-bug-getmodules dwarf-getmacros dwarf-ranges addrcfi \ 48 test-flag-nobits dwarf-getstring rerequest_tag \ 49 alldts md5-sha1-test typeiter typeiter2 low_high_pc \ 50 test-elf_cntl_gelf_getshdr dwflsyms dwfllines \ 51 dwfl-report-elf-align varlocs backtrace backtrace-child \ 52 backtrace-data backtrace-dwarf debuglink debugaltlink \ 53 buildid deleted deleted-lib.so aggregate_size vdsosyms \ 54 getsrc_die strptr newdata elfstrtab dwfl-proc-attach \ 55 elfshphehdr elfstrmerge dwelfgnucompressed elfgetchdr \ 56 elfgetzdata elfputzdata zstrptr 57 58asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \ 59 asm-tst6 asm-tst7 asm-tst8 asm-tst9 60 61if BIARCH 62check_PROGRAMS += backtrace-child-biarch 63endif 64 65# Substitute $(COMPILE). 66backtrace-child-biarch$(EXEEXT): backtrace-child.c 67 $(AM_V_CC)$(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 68 $(AM_CPPFLAGS) $(CPPFLAGS) \ 69 $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \ 70 $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \ 71 -o $@ $< 72 73TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ 74 update1 update2 update3 update4 \ 75 run-show-die-info.sh run-get-files.sh run-get-lines.sh \ 76 run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \ 77 run-show-abbrev.sh run-line2addr.sh hash \ 78 newscn run-strip-test.sh run-strip-test2.sh \ 79 run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \ 80 run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \ 81 run-strip-test9.sh run-strip-test10.sh \ 82 run-strip-groups.sh run-strip-reloc.sh run-strip-strmerge.sh \ 83 run-unstrip-test.sh run-unstrip-test2.sh \ 84 run-unstrip-test3.sh run-unstrip-M.sh run-elfstrmerge-test.sh \ 85 run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \ 86 run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \ 87 run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \ 88 run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ 89 run-find-prologues.sh run-allregs.sh run-addrcfi.sh \ 90 run-nm-self.sh run-readelf-self.sh \ 91 run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \ 92 run-readelf-test4.sh run-readelf-twofiles.sh \ 93 run-readelf-macro.sh run-readelf-loc.sh \ 94 run-readelf-aranges.sh run-readelf-line.sh run-readelf-z.sh \ 95 run-native-test.sh run-bug1-test.sh \ 96 run-debuglink.sh run-debugaltlink.sh run-buildid.sh \ 97 dwfl-bug-addr-overflow run-addrname-test.sh \ 98 dwfl-bug-fd-leak dwfl-bug-report \ 99 run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \ 100 run-disasm-x86.sh run-disasm-x86-64.sh \ 101 run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \ 102 run-test-flag-nobits.sh run-prelink-addr-test.sh \ 103 run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh \ 104 run-readelf-d.sh run-readelf-gdb_index.sh run-unstrip-n.sh \ 105 run-low_high_pc.sh run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \ 106 run-test-archive64.sh run-readelf-vmcoreinfo.sh \ 107 run-readelf-mixed-corenote.sh run-dwfllines.sh \ 108 run-dwfl-report-elf-align.sh run-addr2line-test.sh \ 109 run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \ 110 run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \ 111 run-varlocs.sh run-funcretval.sh \ 112 run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \ 113 run-backtrace-native-biarch.sh run-backtrace-native-core.sh \ 114 run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \ 115 run-backtrace-core-x32.sh \ 116 run-backtrace-core-i386.sh run-backtrace-core-ppc.sh \ 117 run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \ 118 run-backtrace-core-aarch64.sh run-backtrace-core-sparc.sh \ 119 run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \ 120 run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \ 121 run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \ 122 run-linkmap-cut.sh run-aggregate-size.sh vdsosyms run-readelf-A.sh \ 123 run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \ 124 elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \ 125 run-elfgetchdr.sh \ 126 run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \ 127 run-compress-test.sh \ 128 run-readelf-zdebug.sh run-readelf-zdebug-rel.sh 129 130if !BIARCH 131export ELFUTILS_DISABLE_BIARCH = 1 132endif 133 134if !DEMANGLE 135export ELFUTILS_DISABLE_DEMANGLE = 1 136endif 137 138if !STANDALONE 139check_PROGRAMS += msg_tst md5-sha1-test system-elf-libelf-test 140TESTS += msg_tst md5-sha1-test system-elf-libelf-test 141endif 142 143if LZMA 144TESTS += run-readelf-s.sh run-dwflsyms.sh 145endif 146 147if HAVE_LIBASM 148check_PROGRAMS += $(asm_TESTS) 149TESTS += $(asm_TESTS) 150endif 151 152EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ 153 run-show-die-info.sh run-get-files.sh run-get-lines.sh \ 154 run-get-pubnames.sh run-get-aranges.sh \ 155 run-show-abbrev.sh run-strip-test.sh \ 156 run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \ 157 testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \ 158 testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \ 159 testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \ 160 testfile13.bz2 run-strip-test3.sh run-allfcts.sh \ 161 testfile_class_func.bz2 testfile_nested_funcs.bz2 \ 162 run-line2addr.sh run-elflint-test.sh testfile14.bz2 \ 163 run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \ 164 run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \ 165 run-strip-test9.sh run-strip-test10.sh run-strip-strmerge.sh \ 166 run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \ 167 hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \ 168 run-unstrip-test.sh run-unstrip-test2.sh \ 169 testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \ 170 testfile-info-link.stripped.bz2 run-unstrip-test3.sh \ 171 run-unstrip-M.sh run-elfstrmerge-test.sh \ 172 run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \ 173 run-ranlib-test3.sh run-ranlib-test4.sh \ 174 run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \ 175 run-nm-self.sh run-readelf-self.sh run-addrcfi.sh \ 176 run-find-prologues.sh run-allregs.sh run-native-test.sh \ 177 run-addrname-test.sh run-dwfl-bug-offline-rel.sh \ 178 run-dwfl-addr-sect.sh run-early-offscn.sh \ 179 run-dwarf-getmacros.sh \ 180 run-dwarf-ranges.sh debug-ranges-no-lowpc.o.bz2 \ 181 run-test-flag-nobits.sh \ 182 run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \ 183 testfile15.bz2 testfile15.debug.bz2 \ 184 testfile16.bz2 testfile16.debug.bz2 \ 185 testfile17.bz2 testfile17.debug.bz2 \ 186 testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \ 187 testfile20.bz2 testfile20.index.bz2 \ 188 testfile21.bz2 testfile21.index.bz2 \ 189 testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \ 190 testfile26.bz2 testfile27.bz2 \ 191 coverage.sh test-subr.sh test-wrapper.sh \ 192 run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \ 193 run-readelf-test4.sh run-readelf-twofiles.sh \ 194 run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \ 195 run-debuglink.sh run-debugaltlink.sh run-buildid.sh \ 196 testfile29.bz2 testfile29.rdwr.bz2 \ 197 testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \ 198 testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \ 199 testfile36.bz2 testfile36.debug.bz2 \ 200 testfile37.bz2 testfile37.debug.bz2 \ 201 testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \ 202 testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \ 203 testfile43.bz2 \ 204 testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \ 205 testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \ 206 testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \ 207 testfile49.bz2 testfile50.bz2 testfile51.bz2 \ 208 testfile-macros-0xff.bz2 \ 209 run-readelf-macro.sh testfilemacro.bz2 \ 210 run-readelf-loc.sh testfileloc.bz2 \ 211 run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \ 212 run-readelf-z.sh \ 213 run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \ 214 testfile_multi.dwz.bz2 testfile_multi_main.bz2 \ 215 testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \ 216 run-allfcts-multi.sh \ 217 test-offset-loop.bz2 test-offset-loop.alt.bz2 \ 218 run-prelink-addr-test.sh \ 219 testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \ 220 testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \ 221 testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \ 222 testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \ 223 testfile53-32.bz2 testfile53-32.debug.bz2 \ 224 testfile53-32.prelink.bz2 testfile53-64.bz2 \ 225 testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \ 226 testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \ 227 testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \ 228 testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \ 229 testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \ 230 testfile55-32.bz2 testfile55-32.debug.bz2 \ 231 testfile55-32.prelink.bz2 testfile55-64.bz2 \ 232 testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \ 233 testfile56.bz2 testfile57.bz2 testfile58.bz2 \ 234 run-typeiter.sh testfile59.bz2 \ 235 run-readelf-d.sh testlib_dynseg.so.bz2 \ 236 run-readelf-gdb_index.sh testfilegdbindex5.bz2 \ 237 testfilegdbindex7.bz2 \ 238 run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \ 239 testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \ 240 testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \ 241 testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \ 242 testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \ 243 testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \ 244 testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \ 245 testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \ 246 testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \ 247 testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \ 248 run-dwflsyms.sh \ 249 run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \ 250 run-low_high_pc.sh testfile_low_high_pc.bz2 \ 251 run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \ 252 run-elf_cntl_gelf_getshdr.sh \ 253 run-test-archive64.sh testarchive64.a.bz2 \ 254 testfile60.bz2 testfile61.bz2 \ 255 run-readelf-vmcoreinfo.sh testfile62.bz2 \ 256 run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \ 257 testfile65.bz2 testfile67.bz2 testfile68.bz2 \ 258 testfile69.core.bz2 testfile69.so.bz2 \ 259 testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \ 260 run-dwfllines.sh run-dwfl-report-elf-align.sh \ 261 testfile-dwfl-report-elf-align-shlib.so.bz2 \ 262 testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \ 263 test-core.exec.bz2 run-addr2line-test.sh \ 264 run-addr2line-i-test.sh testfile-inlines.bz2 \ 265 run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \ 266 run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \ 267 testfileppc32.bz2 testfileppc64.bz2 \ 268 testfiles390.bz2 testfiles390x.bz2 \ 269 testfilearm.bz2 testfileaarch64.bz2 \ 270 run-varlocs.sh \ 271 testfile_const_type.c testfile_const_type.bz2 \ 272 testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \ 273 testfile_parameter_ref.c testfile_parameter_ref.bz2 \ 274 testfile_entry_value.c testfile_entry_value.bz2 \ 275 testfile_implicit_value.c testfile_implicit_value.bz2 \ 276 testfile_aarch64_core.bz2 testfile_i686_core.bz2 \ 277 run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \ 278 run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \ 279 run-backtrace-native.sh run-backtrace-native-biarch.sh \ 280 run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \ 281 run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \ 282 run-backtrace-core-x32.sh \ 283 backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \ 284 backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \ 285 backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \ 286 run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \ 287 backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \ 288 backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \ 289 run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \ 290 run-backtrace-core-aarch64.sh \ 291 backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \ 292 run-backtrace-core-sparc.sh \ 293 backtrace.sparc.core.bz2 backtrace.sparc.exec.bz2 \ 294 run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \ 295 testfile-backtrace-demangle.cc \ 296 testfile-backtrace-demangle.core.bz2 \ 297 run-stack-d-test.sh run-stack-i-test.sh \ 298 run-stack-demangled-test.sh \ 299 testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \ 300 run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \ 301 run-readelf-zdebug-rel.sh testfile-debug-rel.o.bz2 \ 302 testfile-debug-rel-g.o.bz2 testfile-debug-rel-z.o.bz2 \ 303 run-readelf-zx.sh run-readelf-zp.sh \ 304 run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \ 305 linkmap-cut.bz2 linkmap-cut.core.bz2 \ 306 run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \ 307 testfile-sizes3.o.bz2 \ 308 run-readelf-A.sh testfileppc32attrs.o.bz2 \ 309 testfile-debug-types.bz2 \ 310 run-getsrc-die.sh run-strptr.sh \ 311 testfile-x32-core.bz2 testfile-x32.bz2 \ 312 backtrace.x32.core.bz2 backtrace.x32.exec.bz2 \ 313 testfile-x32-s.bz2 testfile-x32-d.bz2 testfile-x32-debug.bz2 \ 314 run-lfs-symbols.sh lfs-symbols testfile-nolfs.bz2 \ 315 testfile-zgnu32.bz2 testfile-zgnu64.bz2 \ 316 testfile-zgnu32be.bz2 testfile-zgnu64be.bz2 \ 317 run-dwelfgnucompressed.sh \ 318 testfile-zgabi32.bz2 testfile-zgabi64.bz2 \ 319 testfile-zgabi32be.bz2 testfile-zgabi64be.bz2 \ 320 run-elfgetchdr.sh run-elfgetzdata.sh run-elfputzdata.sh \ 321 run-zstrptr.sh run-compress-test.sh 322 323if USE_VALGRIND 324valgrind_cmd='valgrind -q --leak-check=full --error-exitcode=1' 325endif 326 327 328installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \ 329 bindir=$(DESTDIR)$(bindir); \ 330 LC_ALL=C; LANG=C; \ 331 VALGRIND_CMD=$(valgrind_cmd); \ 332 abs_srcdir=$(abs_srcdir); \ 333 abs_builddir=$(abs_builddir); \ 334 abs_top_builddir=$(abs_top_builddir); \ 335 export abs_srcdir; export abs_builddir; \ 336 export abs_top_builddir; \ 337 export libdir; export bindir; \ 338 export LC_ALL; export LANG; export VALGRIND_CMD; \ 339 NM=$(NM); export NM; 340installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \ 341 installed $(tests_rpath) \ 342 '$(program_transform_name)' 343if STANDALONE 344TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT) 345LOG_COMPILER = $(installed_LOG_COMPILER) 346else !STANDALONE 347TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD=$(valgrind_cmd); \ 348 abs_srcdir=$(abs_srcdir); abs_builddir=$(abs_builddir); \ 349 abs_top_builddir=$(abs_top_builddir); \ 350 export abs_srcdir; export abs_builddir; \ 351 export abs_top_builddir; \ 352 export LC_ALL; export LANG; export VALGRIND_CMD; \ 353 NM=$(NM); export NM; 354LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \ 355 $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm 356 357installcheck-local: 358 $(MAKE) $(AM_MAKEFLAGS) \ 359 TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \ 360 LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS 361endif !STANDALONE 362 363if STANDALONE 364libdw = -ldw 365libelf = -lelf 366libasm = -lasm 367libebl = -lebl 368else !STANDALONE 369if BUILD_STATIC 370libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl 371libelf = ../libelf/libelf.a -lz 372libasm = ../libasm/libasm.a 373else 374libdw = ../libdw/libdw.so 375libelf = ../libelf/libelf.so 376libasm = ../libasm/libasm.so 377endif 378libebl = ../libebl/libebl.a 379libeu = ../lib/libeu.a 380endif !STANDALONE 381 382arextract_LDADD = $(libelf) 383arsymtest_LDADD = $(libelf) 384newfile_LDADD = $(libelf) 385saridx_LDADD = $(libelf) 386scnnames_LDADD = $(libelf) 387sectiondump_LDADD = $(libelf) 388showptable_LDADD = $(libelf) 389hash_LDADD = $(libelf) 390test_nlist_LDADD = $(libelf) 391msg_tst_LDADD = $(libelf) 392newscn_LDADD = $(libelf) 393early_offscn_LDADD = $(libelf) 394ecp_LDADD = $(libelf) 395update1_LDADD = $(libelf) 396update2_LDADD = $(libelf) 397update3_LDADD = $(libebl) $(libelf) 398update4_LDADD = $(libebl) $(libelf) 399show_die_info_LDADD = $(libdw) $(libelf) 400get_pubnames_LDADD = $(libdw) $(libelf) 401show_abbrev_LDADD = $(libdw) $(libelf) 402get_lines_LDADD = $(libdw) $(libelf) 403get_files_LDADD = $(libdw) $(libelf) 404get_aranges_LDADD = $(libdw) $(libelf) 405allfcts_LDADD = $(libdw) $(libelf) 406line2addr_LDADD = $(libdw) $(argp_LDADD) 407addrscopes_LDADD = $(libdw) $(argp_LDADD) 408funcscopes_LDADD = $(libdw) $(argp_LDADD) 409funcretval_LDADD = $(libdw) $(argp_LDADD) 410allregs_LDADD = $(libdw) $(argp_LDADD) 411find_prologues_LDADD = $(libdw) $(argp_LDADD) 412#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) 413asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) -ldl 414asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) -ldl 415asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) -ldl 416asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) -ldl 417asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) -ldl 418asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) -ldl 419asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) -ldl 420asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) -ldl 421asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) -ldl 422dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl 423rdwrmmap_LDADD = $(libelf) 424dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf) -ldl 425arls_LDADD = $(libelf) 426dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf) -ldl 427dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf) -ldl 428dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf) -ldl 429dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl 430dwarf_getmacros_LDADD = $(libdw) 431dwarf_ranges_LDADD = $(libdw) 432dwarf_getstring_LDADD = $(libdw) 433addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD) -ldl 434test_flag_nobits_LDADD = $(libelf) 435rerequest_tag_LDADD = $(libdw) 436alldts_LDADD = $(libebl) $(libelf) 437md5_sha1_test_LDADD = $(libeu) 438typeiter_LDADD = $(libdw) $(libelf) 439typeiter2_LDADD = $(libdw) $(libelf) 440low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD) 441test_elf_cntl_gelf_getshdr_LDADD = $(libelf) 442dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD) 443dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD) 444dwfl_report_elf_align_LDADD = $(libdw) 445varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD) 446backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD) 447# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables: 448backtrace_child_CFLAGS = -fPIE 449backtrace_child_LDFLAGS = -pie -pthread 450backtrace_child_biarch_SOURCES = backtrace-child.c 451backtrace_data_LDADD = $(libdw) $(libelf) 452backtrace_dwarf_CFLAGS = -Wno-unused-parameter 453backtrace_dwarf_LDADD = $(libdw) $(libelf) 454debuglink_LDADD = $(libdw) $(libelf) 455debugaltlink_LDADD = $(libdw) $(libelf) 456buildid_LDADD = $(libdw) $(libelf) 457deleted_LDADD = ./deleted-lib.so 458deleted_lib_so_LDFLAGS = -shared -rdynamic 459deleted_lib_so_CFLAGS = -fPIC -fasynchronous-unwind-tables 460aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD) 461vdsosyms_LDADD = $(libdw) $(libelf) 462getsrc_die_LDADD = $(libdw) $(libelf) 463strptr_LDADD = $(libelf) 464newdata_LDADD = $(libelf) 465elfstrtab_LDADD = $(libelf) 466dwfl_proc_attach_LDADD = $(libdw) 467dwfl_proc_attach_LDFLAGS = -pthread $(AM_LDFLAGS) 468elfshphehdr_LDADD =$(libelf) 469elfstrmerge_LDADD = $(libebl) $(libelf) 470dwelfgnucompressed_LDADD = $(libelf) $(libdw) 471elfgetchdr_LDADD = $(libelf) $(libdw) 472elfgetzdata_LDADD = $(libelf) 473elfputzdata_LDADD = $(libelf) 474zstrptr_LDADD = $(libelf) 475 476# We want to test the libelf header against the system elf.h header. 477# Don't include any -I CPPFLAGS. 478system_elf_libelf_test_CPPFLAGS = 479system_elf_libelf_test_LDADD = $(libelf) 480 481if GCOV 482check: check-am coverage 483.PHONY: coverage 484coverage: 485 -$(srcdir)/coverage.sh 486endif 487