• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Process this file with automake to create Makefile.in
2##
3## Copyright (C) 1996-2019 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_CPPFLAGS += -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
23	    -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
24	    -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
25	    -I$(top_srcdir)/lib -I..
26AM_LDFLAGS = -Wl,-rpath-link,../libasm:../libdw:../libelf
27
28if TESTS_RPATH
29AM_LDFLAGS += -Wl,-rpath,$(BUILD_RPATH)
30tests_rpath = yes
31else
32tests_rpath = no
33endif
34
35check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
36		  showptable update1 update2 update3 update4 test-nlist \
37		  show-die-info get-files next-files get-lines next-lines \
38		  get-pubnames \
39		  get-aranges allfcts line2addr addrscopes funcscopes \
40		  show-abbrev hash newscn ecp dwflmodtest \
41		  find-prologues funcretval allregs rdwrmmap \
42		  dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
43		  dwfl-addr-sect dwfl-bug-report early-offscn \
44		  dwfl-bug-getmodules dwarf-getmacros dwarf-ranges addrcfi \
45		  dwarfcfi \
46		  test-flag-nobits dwarf-getstring rerequest_tag \
47		  alldts typeiter typeiter2 low_high_pc \
48		  test-elf_cntl_gelf_getshdr dwflsyms dwfllines \
49		  dwfl-report-elf-align dwfl-report-segment-contiguous \
50		  varlocs backtrace backtrace-child \
51		  backtrace-data backtrace-dwarf debuglink debugaltlink \
52		  buildid deleted deleted-lib.so aggregate_size peel_type \
53		  vdsosyms \
54		  getsrc_die strptr newdata elfstrtab dwfl-proc-attach \
55		  elfshphehdr elfstrmerge dwelfgnucompressed elfgetchdr \
56		  elfgetzdata elfputzdata zstrptr emptyfile vendorelf \
57		  fillfile dwarf_default_lower_bound dwarf-die-addr-die \
58		  get-units-invalid get-units-split attr-integrate-skel \
59		  all-dwarf-ranges unit-info next_cfi \
60		  elfcopy addsections xlate_notes elfrdwrnop \
61		  dwelf_elf_e_machine_string \
62		  getphdrnum leb128 read_unaligned \
63		  msg_tst system-elf-libelf-test \
64		  nvidia_extended_linemap_libdw \
65		  $(asm_TESTS)
66
67asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
68	    asm-tst6 asm-tst7 asm-tst8 asm-tst9
69
70if BIARCH
71check_PROGRAMS += backtrace-child-biarch
72endif
73
74# Substitute $(COMPILE).
75backtrace-child-biarch$(EXEEXT): backtrace-child.c
76	$(AM_V_CC)$(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77		     $(AM_CPPFLAGS) $(CPPFLAGS) \
78		     $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
79		     $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
80		     -o $@ $<
81
82if GCOV
83GCOV_FLAGS=-fprofile-arcs -ftest-coverage
84else
85GCOV_FLAGS=
86endif
87
88# test_nlist checks its own symbol table, and expects various symbols
89# to be in the order as specified in the source file. Explicitly set
90# minimal CFLAGS
91test-nlist$(EXEEXT): test-nlist.c
92	$(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
93	  $(AM_CPPFLAGS) $(CPPFLAGS) \
94	  $(test_nlist_CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD)
95
96TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
97	update1 update2 update3 update4 \
98	run-show-die-info.sh run-get-files.sh run-get-lines.sh \
99	run-next-files.sh run-next-lines.sh \
100	run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
101	run-show-abbrev.sh run-line2addr.sh hash \
102	run-large-elf-file.sh \
103	newscn run-strip-test.sh run-strip-test2.sh \
104	run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
105	run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \
106	run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
107	run-strip-test12.sh \
108	run-strip-nothing.sh run-strip-g.sh run-annobingroup.sh \
109	run-strip-groups.sh run-strip-reloc.sh run-strip-strmerge.sh \
110	run-strip-nobitsalign.sh run-strip-remove-keep.sh \
111	run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-test3.sh \
112	run-unstrip-test4.sh run-unstrip-M.sh run-elfstrmerge-test.sh \
113	run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \
114	run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
115	run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \
116	run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
117	run-find-prologues.sh run-allregs.sh run-addrcfi.sh \
118	run-dwarfcfi.sh run-nm-syms.sh \
119	run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
120	run-readelf-compressed.sh \
121	run-readelf-const-values.sh \
122	run-varlocs-self.sh run-exprlocs-self.sh \
123	run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
124	run-readelf-test4.sh run-readelf-twofiles.sh \
125	run-readelf-macro.sh run-readelf-loc.sh run-readelf-ranges.sh \
126	run-readelf-aranges.sh run-readelf-line.sh run-readelf-z.sh \
127	run-readelf-frames.sh \
128	run-readelf-n.sh \
129	run-retain.sh \
130	run-native-test.sh run-bug1-test.sh \
131	run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
132	dwfl-bug-addr-overflow run-addrname-test.sh \
133	dwfl-bug-fd-leak dwfl-bug-report dwfl-report-segment-contiguous \
134	run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
135	run-disasm-x86.sh run-disasm-x86-64.sh \
136	run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \
137	run-test-flag-nobits.sh run-prelink-addr-test.sh \
138	run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh \
139	run-readelf-d.sh run-readelf-gdb_index.sh run-unstrip-n.sh \
140	run-low_high_pc.sh run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
141	run-test-archive64.sh run-readelf-vmcoreinfo.sh \
142	run-readelf-mixed-corenote.sh run-dwfllines.sh \
143	run-readelf-variant.sh run-readelf-fat-lto.sh \
144	run-dwfl-report-elf-align.sh run-addr2line-test.sh \
145	run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
146	run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
147	run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh run-funcretval.sh \
148	run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \
149	run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
150	run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \
151	run-backtrace-fp-core-x86_64.sh \
152	run-backtrace-fp-core-aarch64.sh \
153	run-backtrace-fp-core-ppc64le.sh \
154	run-backtrace-core-x32.sh \
155	run-backtrace-core-i386.sh run-backtrace-fp-core-i386.sh \
156	run-backtrace-core-ppc.sh \
157	run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
158	run-backtrace-core-aarch64.sh run-backtrace-core-sparc.sh \
159	run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
160	run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
161	run-readelf-addr.sh run-readelf-str.sh \
162	run-readelf-multi-noline.sh \
163	run-readelf-types.sh \
164	run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
165	run-linkmap-cut.sh run-aggregate-size.sh run-peel-type.sh \
166	vdsosyms run-readelf-A.sh \
167	run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
168	elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
169	run-elfgetchdr.sh \
170	run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
171	run-compress-test.sh \
172	run-readelf-zdebug.sh run-readelf-zdebug-rel.sh \
173	emptyfile vendorelf fillfile dwarf_default_lower_bound \
174	run-dwarf-die-addr-die.sh \
175	run-get-units-invalid.sh run-get-units-split.sh \
176	run-attr-integrate-skel.sh \
177	run-all-dwarf-ranges.sh run-unit-info.sh \
178	run-reloc-bpf.sh \
179	run-next-cfi.sh run-next-cfi-self.sh \
180	run-reverse-sections.sh run-reverse-sections-self.sh \
181	run-copyadd-sections.sh run-copymany-sections.sh \
182	run-typeiter-many.sh run-strip-test-many.sh \
183	run-strip-version.sh run-xlate-note.sh \
184	run-readelf-discr.sh \
185	run-dwelf_elf_e_machine_string.sh \
186	run-elfclassify.sh run-elfclassify-self.sh \
187	run-disasm-riscv64.sh \
188	run-pt_gnu_prop-tests.sh \
189	run-getphdrnum.sh run-test-includes.sh \
190	leb128 read_unaligned \
191	msg_tst system-elf-libelf-test \
192	$(asm_TESTS) run-disasm-bpf.sh run-low_high_pc-dw-form-indirect.sh \
193	run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
194	run-readelf-dw-form-indirect.sh run-strip-largealign.sh
195
196if !BIARCH
197export ELFUTILS_DISABLE_BIARCH = 1
198endif
199
200if !DEMANGLE
201export ELFUTILS_DISABLE_DEMANGLE = 1
202endif
203
204if LZMA
205TESTS += run-readelf-s.sh run-dwflsyms.sh
206endif
207
208if HAVE_ZSTD
209TESTS += run-readelf-compressed-zstd.sh
210endif
211
212if DEBUGINFOD
213check_PROGRAMS += debuginfod_build_id_find
214# With the dummy delegation doesn't work
215if !DUMMY_LIBDEBUGINFOD
216TESTS += run-debuginfod-dlopen.sh \
217	 run-debuginfod-artifact-running.sh \
218	 run-debuginfod-fd-prefetch-caches.sh \
219	 run-debuginfod-regex.sh \
220	 run-debuginfod-duplicate-urls.sh \
221	 run-debuginfod-file.sh \
222	 run-debuginfod-sizetime.sh \
223	 run-debuginfod-malformed.sh \
224	 run-debuginfod-000-permission.sh \
225	 run-debuginfod-tmp-home.sh \
226	 run-debuginfod-writable.sh \
227	 run-debuginfod-no-urls.sh \
228	 run-debuginfod-query-retry.sh \
229	 run-debuginfod-extraction.sh \
230	 run-debuginfod-archive-groom.sh \
231	 run-debuginfod-archive-rename.sh \
232	 run-debuginfod-archive-test.sh \
233	 run-debuginfod-federation-sqlite.sh \
234	 run-debuginfod-federation-link.sh \
235	 run-debuginfod-federation-metrics.sh \
236         run-debuginfod-percent-escape.sh \
237         run-debuginfod-x-forwarded-for.sh \
238         run-debuginfod-response-headers.sh \
239         run-debuginfod-extraction-passive.sh
240endif
241endif
242
243EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
244	     run-show-die-info.sh run-get-files.sh run-get-lines.sh \
245	     run-next-files.sh run-next-lines.sh testfile-only-debug-line.bz2 \
246	     run-get-pubnames.sh run-get-aranges.sh \
247	     run-show-abbrev.sh run-strip-test.sh \
248	     run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
249	     testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
250	     testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
251	     testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
252	     testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
253	     testfile_class_func.bz2 testfile_nested_funcs.bz2 \
254	     testfile-lto-gcc10.bz2 \
255	     testfile-lto-gcc9.bz2 testfile-lto-gcc8.bz2 \
256	     run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
257	     run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
258	     run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
259	     run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
260	     run-strip-test12.sh \
261	     run-strip-nothing.sh run-strip-remove-keep.sh run-strip-g.sh \
262	     run-annobingroup.sh testfile-annobingroup.o.bz2 \
263	     testfile-annobingroup-i386.o.bz2 \
264	     testfile-annobingroup-x86_64.o.bz2 \
265	     run-strip-strmerge.sh run-strip-nobitsalign.sh \
266	     testfile-nobitsalign.bz2 testfile-nobitsalign.strip.bz2 \
267	     run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
268	     hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
269	     hello_m68k.ko.bz2 hello_riscv64.ko.bz2 hello_csky.ko.bz2 \
270	     run-unstrip-test.sh run-unstrip-test2.sh \
271	     testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
272	     testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
273	     run-unstrip-test4.sh testfile-strtab.bz2 \
274	     testfile-strtab.stripped.bz2 testfile-strtab.debuginfo.bz2 \
275	     run-unstrip-M.sh run-elfstrmerge-test.sh \
276	     run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
277	     run-ranlib-test3.sh run-ranlib-test4.sh \
278	     run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
279	     run-nm-syms.sh testfilesyms32.bz2 testfilesyms64.bz2 \
280	     run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
281	     run-readelf-compressed.sh \
282	     run-readelf-compressed-zstd.sh \
283	     run-readelf-const-values.sh testfile-const-values.debug.bz2 \
284	     run-addrcfi.sh run-dwarfcfi.sh \
285	     testfile11-debugframe.bz2 testfile12-debugframe.bz2 \
286	     testfileaarch64-debugframe.bz2 testfilearm-debugframe.bz2 \
287	     testfileppc32-debugframe.bz2 testfileppc64-debugframe.bz2 \
288	     testfilecsky.bz2 \
289	     run-varlocs-self.sh run-exprlocs-self.sh \
290	     run-find-prologues.sh run-allregs.sh run-native-test.sh \
291	     run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
292	     run-dwfl-addr-sect.sh run-early-offscn.sh \
293	     run-dwarf-getmacros.sh \
294	     run-dwarf-ranges.sh debug-ranges-no-lowpc.o.bz2 \
295	     testfileranges4.debug.bz2 testfileranges5.debug.bz2 \
296	     testfilesplitranges5.debug.bz2 \
297	     testfile-ranges-hello5.dwo.bz2 testfile-ranges-world5.dwo.bz2 \
298	     run-test-flag-nobits.sh \
299	     run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
300	     testfile15.bz2 testfile15.debug.bz2 \
301	     testfile16.bz2 testfile16.debug.bz2 \
302	     testfile17.bz2 testfile17.debug.bz2 \
303	     testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
304	     testfile20.bz2 testfile20.index.bz2 \
305	     testfile21.bz2 testfile21.index.bz2 \
306	     testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
307	     testfile26.bz2 testfile27.bz2 \
308	     coverage.sh test-subr.sh test-wrapper.sh debuginfod-subr.sh \
309	     run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
310	     run-readelf-test4.sh run-readelf-twofiles.sh \
311	     run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
312	     run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
313	     testfile29.bz2 testfile29.rdwr.bz2 \
314	     testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
315	     testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
316	     testfile36.bz2 testfile36.debug.bz2 \
317	     testfile37.bz2 testfile37.debug.bz2 \
318	     testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
319	     testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
320	     testfile43.bz2 \
321	     testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
322	     testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
323	     testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
324	     testfile49.bz2 testfile50.bz2 testfile51.bz2 \
325	     testfile-macros-0xff.bz2 \
326	     run-readelf-macro.sh testfilemacro.bz2 \
327	     run-readelf-loc.sh testfileloc.bz2 \
328	     splitdwarf4-not-split4.dwo.bz2 \
329	     testfile-splitdwarf4-not-split4.debug.bz2 \
330	     run-readelf-ranges.sh \
331	     run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
332	     testfile-ppc64-min-instr.bz2 \
333	     testfile-dwarf-45.source \
334	     testfile-dwarf-4.bz2 testfile-dwarf-5.bz2 \
335	     run-readelf-z.sh \
336	     run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
337	     testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
338	     testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
339	     run-readelf-addr.sh run-readelf-str.sh \
340	     run-readelf-multi-noline.sh testfile_multi_noline.bz2 \
341	     run-readelf-types.sh \
342	     run-readelf-frames.sh \
343	     run-readelf-n.sh \
344	     testfile-gnu-property-note.bz2 testfile-gnu-property-note.o.bz2 \
345	     testfile_gnu_props.32le.o.bz2 \
346	     testfile_gnu_props.64le.o.bz2 \
347	     testfile_gnu_props.32be.o.bz2 \
348	     testfile_gnu_props.64be.o.bz2 \
349	     testfile-gnu-property-note-aarch64.bz2 \
350	     run-retain.sh testfile-retain.o.bz2 \
351	     run-allfcts-multi.sh \
352	     test-offset-loop.bz2 test-offset-loop.alt.bz2 \
353	     run-prelink-addr-test.sh \
354	     testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
355	     testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
356	     testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
357	     testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
358	     testfile53-32.bz2 testfile53-32.debug.bz2 \
359	     testfile53-32.prelink.bz2 testfile53-64.bz2 \
360	     testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
361	     testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
362	     testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
363	     testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
364	     testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
365	     testfile55-32.bz2 testfile55-32.debug.bz2 \
366	     testfile55-32.prelink.bz2 testfile55-64.bz2 \
367	     testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
368	     testfile56.bz2 testfile57.bz2 testfile58.bz2 \
369	     run-typeiter.sh testfile59.bz2 \
370	     run-readelf-d.sh testlib_dynseg.so.bz2 \
371	     testfile-s390x-hash-both.bz2 \
372	     run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
373	     testfilegdbindex7.bz2 \
374	     run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
375	     testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
376	     testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
377	     testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
378	     testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
379	     testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
380	     testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
381	     testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
382	     testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
383	     testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
384	     run-readelf-variant.sh testfile-ada-variant.bz2 \
385	     run-readelf-fat-lto.sh testfile-dwarf5-fat-lto.o.bz2 \
386	     run-dwflsyms.sh \
387	     run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
388	     run-low_high_pc.sh testfile_low_high_pc.bz2 \
389	     run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
390	     run-elf_cntl_gelf_getshdr.sh \
391	     run-test-archive64.sh testarchive64.a.bz2 \
392	     testfile61.bz2 \
393	     run-readelf-vmcoreinfo.sh testfile62.bz2 \
394	     run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
395	     testfile65.bz2 testfile67.bz2 testfile68.bz2 \
396	     testfile69.core.bz2 testfile69.so.bz2 \
397	     testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
398	     run-dwfllines.sh run-dwfl-report-elf-align.sh \
399	     testfile-dwfl-report-elf-align-shlib.so.bz2 \
400	     testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
401	     test-core.exec.bz2 run-addr2line-test.sh \
402	     run-addr2line-i-test.sh testfile-inlines.bz2 \
403	     run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
404	     run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
405	     testfileppc32.bz2 testfileppc64.bz2 \
406	     testfiles390.bz2 testfiles390x.bz2 \
407	     testfilearm.bz2 testfileaarch64.bz2 \
408	     run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh \
409	     testfile-vars-clang-dwarf4-32.o.bz2 \
410	     testfile-vars-clang-dwarf4-64.o.bz2 \
411	     testfile-vars-clang-dwarf5-32.o.bz2 \
412	     testfile-vars-clang-dwarf5-64.o.bz2 \
413	     testfile-vars-gcc-dwarf4-32.o.bz2 \
414	     testfile-vars-gcc-dwarf4-64.o.bz2 \
415	     testfile-vars-gcc-dwarf5-32.o.bz2 \
416	     testfile-vars-gcc-dwarf5-64.o.bz2 \
417	     testfile-stridex.bz2 \
418	     testfile_const_type.c testfile_const_type.bz2 \
419	     testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
420	     testfile_parameter_ref.c testfile_parameter_ref.bz2 \
421	     testfile_entry_value.c testfile_entry_value.bz2 \
422	     testfile_implicit_value.c testfile_implicit_value.bz2 \
423	     testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
424	     addrx_constx-4.dwo.bz2 addrx_constx-5.dwo.bz2 \
425	     testfile-addrx_constx-4.bz2 testfile-addrx_constx-5.bz2 \
426	     run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
427	     run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
428	     run-backtrace-native.sh run-backtrace-native-biarch.sh \
429	     run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
430	     run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
431	     run-backtrace-fp-core-x86_64.sh \
432	     run-backtrace-core-x32.sh \
433	     run-backtrace-fp-core-aarch64.sh \
434	     backtrace.aarch64.fp.core.bz2 backtrace.aarch64.fp.exec.bz2 \
435	     backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
436	     run-backtrace-fp-core-i386.sh \
437	     backtrace.i386.fp.core.bz2 backtrace.i386.fp.exec.bz2 \
438	     run-backtrace-fp-core-ppc64le.sh \
439	     backtrace.ppc64le.fp.core.bz2 backtrace.ppc64le.fp.exec.bz2 \
440	     backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
441	     backtrace.x86_64.fp.core.bz2 backtrace.x86_64.fp.exec.bz2 \
442	     backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
443	     run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
444	     backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
445	     backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
446	     run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
447	     run-backtrace-core-aarch64.sh \
448	     backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
449	     run-backtrace-core-sparc.sh \
450	     backtrace.sparc.core.bz2 backtrace.sparc.exec.bz2 \
451	     run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
452	     testfile-backtrace-demangle.cc \
453	     testfile-backtrace-demangle.core.bz2 \
454	     run-stack-d-test.sh run-stack-i-test.sh \
455	     run-stack-demangled-test.sh \
456	     testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
457	     run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
458	     run-readelf-zdebug-rel.sh testfile-debug-rel.o.bz2 \
459	     testfile-debug-rel-g.o.bz2 testfile-debug-rel-z.o.bz2 \
460	     run-readelf-zx.sh run-readelf-zp.sh \
461	     run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
462	     linkmap-cut.bz2 linkmap-cut.core.bz2 \
463	     run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
464	     testfile-sizes3.o.bz2 testfile-sizes4.o.bz2 testfile-sizes4.s \
465	     run-peel-type.sh \
466	     run-readelf-A.sh testfileppc32attrs.o.bz2 \
467	     testfilesparc64attrs.o.bz2 testfileppc64attrs.o.bz2 \
468	     testfile-debug-types.bz2 \
469	     run-getsrc-die.sh run-strptr.sh \
470	     testfile-x32-core.bz2 testfile-x32.bz2 \
471	     backtrace.x32.core.bz2 backtrace.x32.exec.bz2 \
472	     testfile-x32-s.bz2 testfile-x32-d.bz2 testfile-x32-debug.bz2 \
473	     run-lfs-symbols.sh lfs-symbols testfile-nolfs.bz2 \
474	     testfile-zgnu32.bz2 testfile-zgnu64.bz2 \
475	     testfile-zgnu32be.bz2 testfile-zgnu64be.bz2 \
476	     run-dwelfgnucompressed.sh \
477	     testfile-zgabi32.bz2 testfile-zgabi64.bz2 \
478	     testfile-zgabi32be.bz2 testfile-zgabi64be.bz2 \
479	     run-elfgetchdr.sh run-elfgetzdata.sh run-elfputzdata.sh \
480	     run-zstrptr.sh run-compress-test.sh \
481	     run-disasm-bpf.sh \
482	     testfile-bpf-dis1.expect.bz2 testfile-bpf-dis1.o.bz2 \
483	     run-reloc-bpf.sh \
484	     testfile-bpf-reloc.expect.bz2 testfile-bpf-reloc.o.bz2 \
485	     testfile-m68k-core.bz2 testfile-m68k.bz2 testfile-m68k-s.bz2 \
486	     run-dwarf-die-addr-die.sh \
487	     run-get-units-invalid.sh run-get-units-split.sh \
488	     testfile-hello4.dwo.bz2 testfile-hello5.dwo.bz2 \
489	     testfile-splitdwarf-4.bz2 testfile-splitdwarf-5.bz2 \
490	     testfile-world5.dwo.bz2 testfile-world4.dwo.bz2 \
491	     run-attr-integrate-skel.sh \
492	     run-all-dwarf-ranges.sh testfilesplitranges4.debug.bz2 \
493	     testfile-ranges-hello.dwo.bz2 testfile-ranges-world.dwo.bz2 \
494	     run-unit-info.sh run-next-cfi.sh run-next-cfi-self.sh \
495	     testfile-riscv64.bz2 testfile-riscv64-s.bz2 \
496	     testfile-riscv64-core.bz2 \
497	     run-reverse-sections.sh run-reverse-sections-self.sh \
498	     run-copyadd-sections.sh run-copymany-sections.sh \
499	     run-large-elf-file.sh \
500	     run-typeiter-many.sh run-strip-test-many.sh \
501	     testfile-debug-rel-ppc64-g.o.bz2 \
502	     testfile-debug-rel-ppc64-z.o.bz2 \
503	     testfile-debug-rel-ppc64.o.bz2 \
504	     run-strip-version.sh testfile-version.bz2 \
505	     run-xlate-note.sh \
506	     run-readelf-discr.sh \
507	     testfile-rng.debug.bz2 testfile-urng.debug.bz2 \
508	     run-dwelf_elf_e_machine_string.sh \
509	     run-elfclassify.sh run-elfclassify-self.sh \
510	     run-disasm-riscv64.sh \
511	     testfile-riscv64-dis1.o.bz2 testfile-riscv64-dis1.expect.bz2 \
512             run-debuginfod-extraction.sh \
513             run-debuginfod-federation-link.sh \
514             run-debuginfod-federation-metrics.sh \
515             run-debuginfod-artifact-running.sh \
516             run-debuginfod-federation-sqlite.sh \
517             run-debuginfod-x-forwarded-for.sh \
518	     run-debuginfod-fd-prefetch-caches.sh \
519	     run-debuginfod-regex.sh \
520	     run-debuginfod-duplicate-urls.sh \
521	     run-debuginfod-file.sh \
522	     run-debuginfod-sizetime.sh \
523	     run-debuginfod-dlopen.sh \
524	     run-debuginfod-malformed.sh \
525	     run-debuginfod-000-permission.sh \
526	     run-debuginfod-tmp-home.sh \
527	     run-debuginfod-writable.sh \
528	     run-debuginfod-no-urls.sh \
529	     run-debuginfod-query-retry.sh \
530	     run-debuginfod-archive-groom.sh \
531	     run-debuginfod-archive-rename.sh \
532             run-debuginfod-archive-test.sh \
533             run-debuginfod-percent-escape.sh \
534	     run-debuginfod-response-headers.sh \
535             run-debuginfod-extraction-passive.sh \
536	     debuginfod-rpms/fedora30/hello2-1.0-2.src.rpm \
537	     debuginfod-rpms/fedora30/hello2-1.0-2.x86_64.rpm \
538	     debuginfod-rpms/fedora30/hello2-debuginfo-1.0-2.x86_64.rpm \
539	     debuginfod-rpms/fedora30/hello2-debugsource-1.0-2.x86_64.rpm \
540	     debuginfod-rpms/fedora30/hello2-two-1.0-2.x86_64.rpm \
541	     debuginfod-rpms/fedora30/hello2-two-debuginfo-1.0-2.x86_64.rpm \
542	     debuginfod-rpms/fedora31/hello3-1.0-2.src.rpm \
543	     debuginfod-rpms/fedora31/hello3-1.0-2.x86_64.rpm \
544	     debuginfod-rpms/fedora31/hello3-debuginfo-1.0-2.x86_64.rpm \
545	     debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \
546	     debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \
547	     debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \
548	     debuginfod-rpms/hello2.spec. \
549	     debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \
550	     debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \
551	     debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \
552	     debuginfod-rpms/rhel6/hello2-two-1.0-2.i686.rpm \
553	     debuginfod-rpms/rhel7/hello2-1.0-2.src.rpm \
554	     debuginfod-rpms/rhel7/hello2-1.0-2.x86_64.rpm \
555	     debuginfod-rpms/rhel7/hello2-debuginfo-1.0-2.x86_64.rpm \
556	     debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
557	     debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
558	     debuginfod-debs/hithere-dbgsym_1.0-1_amd64.ddeb \
559	     debuginfod-debs/hithere_1.0-1.debian.tar.xz \
560	     debuginfod-debs/hithere_1.0-1.dsc \
561	     debuginfod-debs/hithere_1.0-1_amd64.deb \
562	     debuginfod-debs/hithere_1.0.orig.tar.gz \
563	     debuginfod-tars/hello-1-1-x86_64.pkg.tar.xz \
564	     debuginfod-tars/hello-debug-1-1-x86_64.pkg.tar.bz2 \
565	     debuginfod-tars/pacman-sources/PKGBUILD \
566	     debuginfod-tars/pacman-sources/README.md \
567	     debuginfod-tars/pacman-sources/hello.c \
568	     run-pt_gnu_prop-tests.sh \
569	     testfile_pt_gnu_prop.bz2 testfile_pt_gnu_prop32.bz2 \
570	     run-getphdrnum.sh testfile-phdrs.elf.bz2 \
571	     run-test-includes.sh run-low_high_pc-dw-form-indirect.sh \
572	     run-readelf-dw-form-indirect.sh testfile-dw-form-indirect.bz2 \
573	     run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
574	     testfile_nvidia_linemap.bz2 \
575	     testfile-largealign.o.bz2 run-strip-largealign.sh
576
577
578if USE_VALGRIND
579valgrind_cmd=valgrind -q --leak-check=full --error-exitcode=1
580endif
581
582
583installed_TESTS_ENVIRONMENT = libdir='$(DESTDIR)$(libdir)'; \
584			      bindir='$(DESTDIR)$(bindir)'; \
585			      LC_ALL=C; LANG=C; \
586			      VALGRIND_CMD='$(valgrind_cmd)'; \
587			      abs_srcdir='$(abs_srcdir)'; \
588			      abs_builddir='$(abs_builddir)'; \
589			      abs_top_builddir='$(abs_top_builddir)'; \
590			      export abs_srcdir; export abs_builddir; \
591			      export abs_top_builddir; \
592			      export libdir; export bindir; \
593			      export LC_ALL; export LANG; export VALGRIND_CMD; \
594			      unset DEBUGINFOD_URLS; \
595			      NM='$(NM)'; export NM; \
596			      CC='$(CC)'; export CC;
597installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
598			 installed $(tests_rpath) \
599			 '$(program_transform_name)'
600TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD='$(valgrind_cmd)'; \
601		    abs_srcdir='$(abs_srcdir)'; \
602		    abs_builddir='$(abs_builddir)'; \
603		    abs_top_builddir='$(abs_top_builddir)'; \
604		    export abs_srcdir; export abs_builddir; \
605		    export abs_top_builddir; \
606		    export LC_ALL; export LANG; export VALGRIND_CMD; \
607		    unset DEBUGINFOD_URLS; \
608		    NM='$(NM)'; export NM; \
609		    CC='$(CC)'; export CC;
610LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
611	       $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
612
613installcheck-local:
614	$(MAKE) $(AM_MAKEFLAGS) \
615		TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
616		LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
617
618if BUILD_STATIC
619libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread
620libelf = ../libelf/libelf.a -lz
621libasm = ../libasm/libasm.a
622else
623libdw = ../libdw/libdw.so
624libelf = ../libelf/libelf.so
625libasm = ../libasm/libasm.so
626endif
627libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
628libeu = ../lib/libeu.a
629
630arextract_LDADD = $(libelf)
631arsymtest_LDADD = $(libelf)
632newfile_LDADD = $(libelf)
633saridx_LDADD = $(libelf)
634scnnames_LDADD = $(libelf)
635sectiondump_LDADD = $(libelf)
636showptable_LDADD = $(libelf)
637hash_LDADD = $(libelf)
638test_nlist_CFLAGS =-g -O0
639test_nlist_LDADD = $(libelf)
640msg_tst_LDADD = $(libelf)
641newscn_LDADD = $(libelf)
642early_offscn_LDADD = $(libelf)
643ecp_LDADD = $(libelf)
644update1_LDADD = $(libelf)
645update2_LDADD = $(libelf)
646update3_LDADD = $(libdw) $(libelf)
647update4_LDADD = $(libdw) $(libelf)
648show_die_info_LDADD = $(libdw) $(libelf)
649get_pubnames_LDADD = $(libdw) $(libelf)
650show_abbrev_LDADD = $(libdw) $(libelf)
651get_lines_LDADD = $(libdw) $(libelf)
652next_lines_LDADD = $(libdw) $(libelf)
653get_files_LDADD = $(libdw) $(libelf)
654next_files_LDADD = $(libdw) $(libelf)
655get_aranges_LDADD = $(libdw) $(libelf)
656allfcts_LDADD = $(libdw) $(libelf)
657line2addr_LDADD = $(libdw) $(argp_LDADD)
658addrscopes_LDADD = $(libdw) $(argp_LDADD)
659funcscopes_LDADD = $(libdw) $(argp_LDADD)
660funcretval_LDADD = $(libdw) $(argp_LDADD)
661allregs_LDADD = $(libdw) $(argp_LDADD)
662find_prologues_LDADD = $(libdw) $(argp_LDADD)
663#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
664asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
665asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
666asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
667asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
668asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
669asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
670asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
671asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
672asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
673dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
674rdwrmmap_LDADD = $(libelf)
675dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf)
676arls_LDADD = $(libelf)
677dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf)
678dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf)
679dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf)
680dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
681dwarf_getmacros_LDADD = $(libdw)
682dwarf_ranges_LDADD = $(libdw)
683dwarf_getstring_LDADD = $(libdw)
684addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
685dwarfcfi_LDADD = $(libdw) $(libelf)
686test_flag_nobits_LDADD = $(libelf)
687rerequest_tag_LDADD = $(libdw)
688alldts_LDADD = $(libdw) $(libelf)
689typeiter_LDADD = $(libdw) $(libelf)
690typeiter2_LDADD = $(libdw) $(libelf)
691low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD)
692test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
693dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD)
694dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD)
695dwfl_report_elf_align_LDADD = $(libdw)
696dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf)
697varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD)
698backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD)
699# backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
700backtrace_child_CFLAGS = $(fpie_CFLAGS)
701backtrace_child_LDFLAGS = -pie -pthread
702backtrace_child_biarch_SOURCES = backtrace-child.c
703backtrace_data_LDADD = $(libdw) $(libelf)
704backtrace_dwarf_CFLAGS = -Wno-unused-parameter
705backtrace_dwarf_LDADD = $(libdw) $(libelf)
706debuglink_LDADD = $(libdw) $(libelf)
707debugaltlink_LDADD = $(libdw) $(libelf)
708buildid_LDADD = $(libdw) $(libelf)
709deleted_LDADD = ./deleted-lib.so
710deleted_lib_so_LDFLAGS = -shared
711deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables
712aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD)
713peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD)
714vdsosyms_LDADD = $(libdw) $(libelf)
715getsrc_die_LDADD = $(libdw) $(libelf)
716strptr_LDADD = $(libelf)
717newdata_LDADD = $(libelf)
718elfstrtab_LDADD = $(libelf)
719dwfl_proc_attach_LDADD = $(libdw)
720dwfl_proc_attach_LDFLAGS = -pthread $(AM_LDFLAGS)
721elfshphehdr_LDADD =$(libelf)
722elfstrmerge_LDADD = $(libdw) $(libelf)
723dwelfgnucompressed_LDADD = $(libelf) $(libdw)
724elfgetchdr_LDADD = $(libelf) $(libdw)
725elfgetzdata_LDADD = $(libelf)
726elfputzdata_LDADD = $(libelf)
727zstrptr_LDADD = $(libelf)
728emptyfile_LDADD = $(libelf)
729vendorelf_LDADD = $(libelf)
730fillfile_LDADD = $(libelf)
731dwarf_default_lower_bound_LDADD = $(libdw)
732dwarf_die_addr_die_LDADD = $(libdw)
733get_units_invalid_LDADD = $(libdw)
734get_units_split_LDADD = $(libdw)
735attr_integrate_skel_LDADD = $(libdw)
736all_dwarf_ranges_LDADD = $(libdw)
737unit_info_LDADD = $(libdw)
738next_cfi_LDADD = $(libelf) $(libdw)
739elfcopy_LDADD = $(libelf)
740addsections_LDADD = $(libelf)
741debuginfod_build_id_find_LDADD = $(libelf) $(libdw)
742xlate_notes_LDADD = $(libelf)
743elfrdwrnop_LDADD = $(libelf)
744dwelf_elf_e_machine_string_LDADD = $(libelf) $(libdw)
745getphdrnum_LDADD = $(libelf) $(libdw)
746leb128_LDADD = $(libelf) $(libdw)
747read_unaligned_LDADD = $(libelf) $(libdw)
748nvidia_extended_linemap_libdw_LDADD = $(libelf) $(libdw)
749
750# We want to test the libelf header against the system elf.h header.
751# Don't include any -I CPPFLAGS. Except when we install our own elf.h.
752if !INSTALL_ELFH
753system_elf_libelf_test_CPPFLAGS =
754else
755system_elf_libelf_test_CPPFLAGS = -I$(top_srcdir)/libelf
756endif
757system_elf_libelf_test_LDADD = $(libelf)
758
759# A lock file used to make sure only one test dumps core at a time
760CLEANFILES += core-dump-backtrace.lock
761
762if GCOV
763check: check-am coverage
764.PHONY: coverage
765coverage:
766	-$(srcdir)/coverage.sh
767endif
768