blob: dd37948c19128f896d5fa76ef69d01ea675f9e7b [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 \
Roland McGrath18385902005-07-28 07:12:38 +000025 -I$(top_srcdir)/libdwfl \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000026 -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
27 -I$(top_srcdir)/lib -I..
28
29noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
30 showptable update1 update2 update3 update4 test-nlist \
31 show-die-info get-files get-lines get-pubnames \
32 get-aranges allfcts line2addr \
33 show-abbrev hash asm-tst1 asm-tst2 asm-tst3 \
34 asm-tst4 asm-tst5 asm-tst6 asm-tst7 asm-tst8 asm-tst9 \
Roland McGrath18385902005-07-28 07:12:38 +000035 msg_tst newscn ecp dwflmodtest
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000036# get-ciefde
37
38TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
39 update1 update2 update3 update4 \
40 run-show-die-info.sh run-get-files.sh run-get-lines.sh \
41 run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
42 run-show-abbrev.sh run-line2addr.sh hash asm-tst1 asm-tst2 \
43 asm-tst3 asm-tst4 asm-tst5 asm-tst6 asm-tst7 asm-tst8 asm-tst9 \
44 msg_tst newscn run-strip-test.sh run-strip-test2.sh \
45 run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
46 run-strip-test6.sh run-ecp-test.sh run-ecp-test2.sh \
Ulrich Drepper5d832292005-08-15 21:36:27 +000047 run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
48 run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000049# run-show-ciefde.sh
50
51EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
52 run-show-die-info.sh run-get-files.sh run-get-lines.sh \
53 run-get-pubnames.sh run-get-aranges.sh \
54 run-show-ciefde.sh run-show-abbrev.sh run-strip-test.sh \
55 run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
56 testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
57 testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
58 testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
59 testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
60 run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
61 run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
Ulrich Drepper5d832292005-08-15 21:36:27 +000062 run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
63 run-ranlib-test3.sh run-ranlib-test4.sh \
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000064 testfile15.bz2 testfile15.debug.bz2 \
65 testfile16.bz2 testfile16.debug.bz2 \
66 testfile17.bz2 testfile17.debug.bz2 \
Ulrich Dreppere48c05b2005-08-15 21:47:33 +000067 testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
Ulrich Drepper5d832292005-08-15 21:36:27 +000068 testfile20.bz2 testfile20.index.bz2 \
69 testfile21.bz2 testfile21.index.bz2
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000070
71if MUDFLAP
Ulrich Drepper47be7952005-08-07 04:41:39 +000072static_build=yes
73libmudflap = -lmudflap
74endif
75
76if BUILD_STATIC
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000077libdw = ../libdw/libdw.a
78libelf = ../libelf/libelf.a
79libasm = ../libasm/libasm.a
Ulrich Drepperb08d5a82005-07-26 05:00:05 +000080else
81libdw = ../libdw/libdw.so
82libelf = ../libelf/libelf.so
83libasm = ../libasm/libasm.so
84endif
85libebl = ../libebl/libebl.a
86
87arextract_LDADD = $(libelf) $(libmudflap)
88arsymtest_LDADD = $(libelf) $(libmudflap)
89newfile_LDADD = $(libelf) $(libmudflap)
90saridx_LDADD = $(libelf) $(libmudflap)
91scnnames_LDADD = $(libelf) $(libmudflap)
92sectiondump_LDADD = $(libelf) $(libmudflap)
93showptable_LDADD = $(libelf) $(libmudflap)
94hash_LDADD = $(libelf) $(libmudflap)
95test_nlist_LDADD = $(libelf) $(libmudflap)
96msg_tst_LDADD = $(libelf) $(libmudflap)
97newscn_LDADD = $(libelf) $(libmudflap)
98ecp_LDADD = $(libelf) $(libmudflap)
99update1_LDADD = $(libelf) $(libmudflap)
100update2_LDADD = $(libelf) $(libmudflap)
101update3_LDADD = $(libebl) $(libelf) $(libmudflap)
102update4_LDADD = $(libebl) $(libelf) $(libmudflap)
103show_die_info_LDADD = $(libdw) $(libelf) $(libmudflap)
104get_pubnames_LDADD = $(libdw) $(libelf) $(libmudflap)
105show_abbrev_LDADD = $(libdw) $(libelf) $(libmudflap)
106get_lines_LDADD = $(libdw) $(libelf) $(libmudflap)
107get_files_LDADD = $(libdw) $(libelf) $(libmudflap)
108get_aranges_LDADD = $(libdw) $(libelf) $(libmudflap)
109allfcts_LDADD = $(libdw) $(libelf) $(libmudflap)
110line2addr_no_Wformat = yes
111line2addr_LDADD = $(libdw) $(libelf) $(libmudflap)
112#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) $(libmudflap)
Ulrich Dreppera38998e2005-08-03 02:05:39 +0000113asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
114asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
115asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
116asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
117asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
118asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
119asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
120asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
121asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
Ulrich Drepper47be7952005-08-07 04:41:39 +0000122dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl
Ulrich Drepperb08d5a82005-07-26 05:00:05 +0000123
124CLEANFILES = xxx