blob: 674ed570c18ed3d203ffffdcaf0d175176b048d0 [file] [log] [blame]
Ulrich Drepperb08d5a82005-07-26 05:00:05 +00001## 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##
15DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
16if MUDFLAP
17AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
18 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
19else
20AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
21 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
22AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf
23endif
24INCLUDES = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
25 -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
26 -I$(top_srcdir)/lib -I..
27
28noinst_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
37TESTS = 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
49EXTRA_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
65if MUDFLAP
66libdw = ../libdw/libdw.a
67libelf = ../libelf/libelf.a
68libasm = ../libasm/libasm.a
69libmudflap = -lmudflap
70else
71libdw = ../libdw/libdw.so
72libelf = ../libelf/libelf.so
73libasm = ../libasm/libasm.so
74endif
75libebl = ../libebl/libebl.a
76
77arextract_LDADD = $(libelf) $(libmudflap)
78arsymtest_LDADD = $(libelf) $(libmudflap)
79newfile_LDADD = $(libelf) $(libmudflap)
80saridx_LDADD = $(libelf) $(libmudflap)
81scnnames_LDADD = $(libelf) $(libmudflap)
82sectiondump_LDADD = $(libelf) $(libmudflap)
83showptable_LDADD = $(libelf) $(libmudflap)
84hash_LDADD = $(libelf) $(libmudflap)
85test_nlist_LDADD = $(libelf) $(libmudflap)
86msg_tst_LDADD = $(libelf) $(libmudflap)
87newscn_LDADD = $(libelf) $(libmudflap)
88ecp_LDADD = $(libelf) $(libmudflap)
89update1_LDADD = $(libelf) $(libmudflap)
90update2_LDADD = $(libelf) $(libmudflap)
91update3_LDADD = $(libebl) $(libelf) $(libmudflap)
92update4_LDADD = $(libebl) $(libelf) $(libmudflap)
93show_die_info_LDADD = $(libdw) $(libelf) $(libmudflap)
94get_pubnames_LDADD = $(libdw) $(libelf) $(libmudflap)
95show_abbrev_LDADD = $(libdw) $(libelf) $(libmudflap)
96get_lines_LDADD = $(libdw) $(libelf) $(libmudflap)
97get_files_LDADD = $(libdw) $(libelf) $(libmudflap)
98get_aranges_LDADD = $(libdw) $(libelf) $(libmudflap)
99allfcts_LDADD = $(libdw) $(libelf) $(libmudflap)
100line2addr_no_Wformat = yes
101line2addr_LDADD = $(libdw) $(libelf) $(libmudflap)
102#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) $(libmudflap)
103asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
104asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
105asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
106asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
107asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
108asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
109asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
110asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
111asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap)
112
113CLEANFILES = xxx