Ulrich Drepper | b08d5a8 | 2005-07-26 05:00:05 +0000 | [diff] [blame^] | 1 | ## Process this file with automake to create Makefile.in |
| 2 | ## |
| 3 | ## Copyright (C) 1996-2002, 2003, 2004, 2005 Red Hat, Inc. |
| 4 | ## |
| 5 | ## This program is Open Source software; you can redistribute it and/or |
| 6 | ## modify it under the terms of the Open Software License version 1.0 as |
| 7 | ## published by the Open Source Initiative. |
| 8 | ## |
| 9 | ## You should have received a copy of the Open Software License along |
| 10 | ## with this program; if not, you may obtain a copy of the Open Software |
| 11 | ## License version 1.0 from http://www.opensource.org/licenses/osl.php or |
| 12 | ## by writing the Open Source Initiative c/o Lawrence Rosen, Esq., |
| 13 | ## 3001 King Ranch Road, Ukiah, CA 95482. |
| 14 | ## |
| 15 | DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE |
| 16 | if MUDFLAP |
| 17 | AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\ |
| 18 | $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) |
| 19 | else |
| 20 | AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \ |
| 21 | $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) |
| 22 | AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf |
| 23 | endif |
| 24 | INCLUDES = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \ |
| 25 | -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \ |
| 26 | -I$(top_srcdir)/lib -I.. |
| 27 | |
| 28 | noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \ |
| 29 | showptable update1 update2 update3 update4 test-nlist \ |
| 30 | show-die-info get-files get-lines get-pubnames \ |
| 31 | get-aranges allfcts line2addr \ |
| 32 | show-abbrev hash asm-tst1 asm-tst2 asm-tst3 \ |
| 33 | asm-tst4 asm-tst5 asm-tst6 asm-tst7 asm-tst8 asm-tst9 \ |
| 34 | msg_tst newscn ecp |
| 35 | # get-ciefde |
| 36 | |
| 37 | TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \ |
| 38 | update1 update2 update3 update4 \ |
| 39 | run-show-die-info.sh run-get-files.sh run-get-lines.sh \ |
| 40 | run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \ |
| 41 | run-show-abbrev.sh run-line2addr.sh hash asm-tst1 asm-tst2 \ |
| 42 | asm-tst3 asm-tst4 asm-tst5 asm-tst6 asm-tst7 asm-tst8 asm-tst9 \ |
| 43 | msg_tst newscn run-strip-test.sh run-strip-test2.sh \ |
| 44 | run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \ |
| 45 | run-strip-test6.sh run-ecp-test.sh run-ecp-test2.sh \ |
| 46 | run-elflint-test.sh |
| 47 | # run-show-ciefde.sh |
| 48 | |
| 49 | EXTRA_DIST = run-arextract.sh run-arsymtest.sh \ |
| 50 | run-show-die-info.sh run-get-files.sh run-get-lines.sh \ |
| 51 | run-get-pubnames.sh run-get-aranges.sh \ |
| 52 | run-show-ciefde.sh run-show-abbrev.sh run-strip-test.sh \ |
| 53 | run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \ |
| 54 | testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \ |
| 55 | testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \ |
| 56 | testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \ |
| 57 | testfile13.bz2 run-strip-test3.sh run-allfcts.sh \ |
| 58 | run-line2addr.sh run-elflint-test.sh testfile14.bz2 \ |
| 59 | run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \ |
| 60 | testfile15.bz2 testfile15.debug.bz2 \ |
| 61 | testfile16.bz2 testfile16.debug.bz2 \ |
| 62 | testfile17.bz2 testfile17.debug.bz2 \ |
| 63 | testfile18.bz2 |
| 64 | |
| 65 | if MUDFLAP |
| 66 | libdw = ../libdw/libdw.a |
| 67 | libelf = ../libelf/libelf.a |
| 68 | libasm = ../libasm/libasm.a |
| 69 | libmudflap = -lmudflap |
| 70 | else |
| 71 | libdw = ../libdw/libdw.so |
| 72 | libelf = ../libelf/libelf.so |
| 73 | libasm = ../libasm/libasm.so |
| 74 | endif |
| 75 | libebl = ../libebl/libebl.a |
| 76 | |
| 77 | arextract_LDADD = $(libelf) $(libmudflap) |
| 78 | arsymtest_LDADD = $(libelf) $(libmudflap) |
| 79 | newfile_LDADD = $(libelf) $(libmudflap) |
| 80 | saridx_LDADD = $(libelf) $(libmudflap) |
| 81 | scnnames_LDADD = $(libelf) $(libmudflap) |
| 82 | sectiondump_LDADD = $(libelf) $(libmudflap) |
| 83 | showptable_LDADD = $(libelf) $(libmudflap) |
| 84 | hash_LDADD = $(libelf) $(libmudflap) |
| 85 | test_nlist_LDADD = $(libelf) $(libmudflap) |
| 86 | msg_tst_LDADD = $(libelf) $(libmudflap) |
| 87 | newscn_LDADD = $(libelf) $(libmudflap) |
| 88 | ecp_LDADD = $(libelf) $(libmudflap) |
| 89 | update1_LDADD = $(libelf) $(libmudflap) |
| 90 | update2_LDADD = $(libelf) $(libmudflap) |
| 91 | update3_LDADD = $(libebl) $(libelf) $(libmudflap) |
| 92 | update4_LDADD = $(libebl) $(libelf) $(libmudflap) |
| 93 | show_die_info_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 94 | get_pubnames_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 95 | show_abbrev_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 96 | get_lines_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 97 | get_files_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 98 | get_aranges_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 99 | allfcts_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 100 | line2addr_no_Wformat = yes |
| 101 | line2addr_LDADD = $(libdw) $(libelf) $(libmudflap) |
| 102 | #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) $(libmudflap) |
| 103 | asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 104 | asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 105 | asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 106 | asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 107 | asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 108 | asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 109 | asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 110 | asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 111 | asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) |
| 112 | |
| 113 | CLEANFILES = xxx |