~ubuntu-branches/ubuntu/quantal/elfutils/quantal

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-08-27 15:48:23 UTC
  • Revision ID: james.westby@ubuntu.com-20060827154823-mjwd7ydlbxgwqn4u
Tags: upstream-0.123
ImportĀ upstreamĀ versionĀ 0.123

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to create Makefile.in
 
2
##
 
3
## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
 
4
## This file is part of Red Hat elfutils.
 
5
##
 
6
## Red Hat elfutils is free software; you can redistribute it and/or modify
 
7
## it under the terms of the GNU General Public License as published by the
 
8
## Free Software Foundation; version 2 of the License.
 
9
##
 
10
## Red Hat elfutils is distributed in the hope that it will be useful, but
 
11
## WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
## General Public License for more details.
 
14
##
 
15
## You should have received a copy of the GNU General Public License along
 
16
## with Red Hat elfutils; if not, write to the Free Software Foundation,
 
17
## Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA.
 
18
##
 
19
## Red Hat elfutils is an included package of the Open Invention Network.
 
20
## An included package of the Open Invention Network is a package for which
 
21
## Open Invention Network licensees cross-license their patents.  No patent
 
22
## license is granted, either expressly or impliedly, by designation as an
 
23
## included package.  Should you wish to participate in the Open Invention
 
24
## Network licensing program, please visit www.openinventionnetwork.com
 
25
## <http://www.openinventionnetwork.com>.
 
26
##
 
27
DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
 
28
if MUDFLAP
 
29
AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
 
30
            $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
 
31
BUILD_RPATH = \$$ORIGIN/../backends
 
32
else
 
33
AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
 
34
            $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
 
35
BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
 
36
endif
 
37
 
 
38
AM_LDFLAGS =
 
39
 
 
40
if !STANDALONE
 
41
INCLUDES = -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
 
42
           -I$(top_srcdir)/libdwfl \
 
43
           -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
 
44
           -I$(top_srcdir)/lib -I..
 
45
AM_LDFLAGS += -Wl,-rpath-link,../libasm:../libdw:../libelf
 
46
endif !STANDALONE
 
47
 
 
48
if TESTS_RPATH
 
49
AM_LDFLAGS += -Wl,-rpath,$(BUILT_RPATH)
 
50
tests_rpath = yes
 
51
else
 
52
tests_rpath = no
 
53
endif
 
54
 
 
55
noinst_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
 
56
                  showptable update1 update2 update3 update4 test-nlist \
 
57
                  show-die-info get-files get-lines get-pubnames \
 
58
                  get-aranges allfcts line2addr addrscopes funcscopes \
 
59
                  show-abbrev hash newscn ecp dwflmodtest \
 
60
                  find-prologues funcretval allregs rdwrmmap
 
61
# get-ciefde
 
62
asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
 
63
            asm-tst6 asm-tst7 asm-tst8 asm-tst9
 
64
 
 
65
TESTS = run-arextract.sh run-arsymtest.sh newfile test-nlist \
 
66
        update1 update2 update3 update4 \
 
67
        run-show-die-info.sh run-get-files.sh run-get-lines.sh \
 
68
        run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
 
69
        run-show-abbrev.sh run-line2addr.sh hash \
 
70
        newscn run-strip-test.sh run-strip-test2.sh \
 
71
        run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
 
72
        run-strip-test6.sh run-ecp-test.sh run-ecp-test2.sh \
 
73
        run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
 
74
        run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \
 
75
        run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
 
76
        run-find-prologues.sh run-allregs.sh run-readelf-test1.sh \
 
77
        run-native-test.sh run-bug1-test.sh
 
78
# run-show-ciefde.sh
 
79
 
 
80
if !STANDALONE
 
81
noinst_PROGRAMS += msg_tst
 
82
TESTS += msg_tst
 
83
endif
 
84
 
 
85
if HAVE_LIBASM
 
86
noinst_PROGRAMS += $(asm_TESTS)
 
87
TESTS += $(asm_TESTS)
 
88
endif
 
89
 
 
90
 
 
91
EXTRA_DIST = run-arextract.sh run-arsymtest.sh \
 
92
             run-show-die-info.sh run-get-files.sh run-get-lines.sh \
 
93
             run-get-pubnames.sh run-get-aranges.sh \
 
94
             run-show-ciefde.sh run-show-abbrev.sh run-strip-test.sh \
 
95
             run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
 
96
             testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
 
97
             testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
 
98
             testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
 
99
             testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
 
100
             run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
 
101
             run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
 
102
             run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
 
103
             run-ranlib-test3.sh run-ranlib-test4.sh \
 
104
             run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
 
105
             run-find-prologues.sh run-allregs.sh run-native-test.sh \
 
106
             testfile15.bz2 testfile15.debug.bz2 \
 
107
             testfile16.bz2 testfile16.debug.bz2 \
 
108
             testfile17.bz2 testfile17.debug.bz2 \
 
109
             testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
 
110
             testfile20.bz2 testfile20.index.bz2 \
 
111
             testfile21.bz2 testfile21.index.bz2 \
 
112
             testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
 
113
             testfile26.bz2 testfile27.bz2 \
 
114
             coverage.sh test-subr.sh test-wrapper.sh run-readelf-test1.sh \
 
115
             run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
 
116
             testfile29.bz2 testfile29.rdwr.bz2 \
 
117
             testfile30.bz2 testfile31.bz2
 
118
 
 
119
installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir) \
 
120
                              bindir=$(DESTDIR)$(bindir) \
 
121
                              $(srcdir)/test-wrapper.sh \
 
122
                              installed $(tests_rpath) \
 
123
                              $(program_transform_name)
 
124
if STANDALONE
 
125
TESTS_ENVIRONMENT = $(installed_TESTS_ENVIRONMENT)
 
126
else !STANDALONE
 
127
TESTS_ENVIRONMENT = $(srcdir)/test-wrapper.sh \
 
128
                    ../libdw:../backends:../libelf:../libasm
 
129
 
 
130
installcheck-local:
 
131
        $(MAKE) $(AM_MAKEFLAGS) \
 
132
                TESTS_ENVIRONMENT='$(installed_TESTS_ENVIRONMENT)' check-TESTS
 
133
endif !STANDALONE
 
134
 
 
135
if MUDFLAP
 
136
static_build=yes
 
137
libmudflap = -lmudflap
 
138
endif
 
139
 
 
140
if STANDALONE
 
141
libdw = -ldw
 
142
libelf = -lelf
 
143
libasm = -lasm
 
144
libebl = -lebl
 
145
else !STANDALONE
 
146
if BUILD_STATIC
 
147
libdw = ../libdw/libdw.a $(libelf) $(libebl) -ldl
 
148
libelf = ../libelf/libelf.a
 
149
libasm = ../libasm/libasm.a
 
150
else
 
151
libdw = ../libdw/libdw.so
 
152
libelf = ../libelf/libelf.so
 
153
libasm = ../libasm/libasm.so
 
154
endif
 
155
libebl = ../libebl/libebl.a
 
156
endif !STANDALONE
 
157
 
 
158
arextract_LDADD = $(libelf) $(libmudflap)
 
159
arsymtest_LDADD = $(libelf) $(libmudflap)
 
160
newfile_LDADD = $(libelf) $(libmudflap)
 
161
saridx_LDADD = $(libelf) $(libmudflap)
 
162
scnnames_LDADD = $(libelf) $(libmudflap)
 
163
sectiondump_LDADD = $(libelf) $(libmudflap)
 
164
showptable_LDADD = $(libelf) $(libmudflap)
 
165
hash_LDADD = $(libelf) $(libmudflap)
 
166
test_nlist_LDADD = $(libelf) $(libmudflap)
 
167
msg_tst_LDADD = $(libelf) $(libmudflap)
 
168
newscn_LDADD = $(libelf) $(libmudflap)
 
169
ecp_LDADD = $(libelf) $(libmudflap)
 
170
update1_LDADD = $(libelf) $(libmudflap)
 
171
update2_LDADD = $(libelf) $(libmudflap)
 
172
update3_LDADD = $(libebl) $(libelf) $(libmudflap)
 
173
update4_LDADD = $(libebl) $(libelf) $(libmudflap)
 
174
show_die_info_LDADD = $(libdw) $(libelf) $(libmudflap)
 
175
get_pubnames_LDADD = $(libdw) $(libelf) $(libmudflap)
 
176
show_abbrev_LDADD = $(libdw) $(libelf) $(libmudflap)
 
177
get_lines_LDADD = $(libdw) $(libelf) $(libmudflap)
 
178
get_files_LDADD = $(libdw) $(libelf) $(libmudflap)
 
179
get_aranges_LDADD = $(libdw) $(libelf) $(libmudflap)
 
180
allfcts_LDADD = $(libdw) $(libelf) $(libmudflap)
 
181
line2addr_no_Wformat = yes
 
182
line2addr_LDADD = $(libdw) $(libmudflap)
 
183
addrscopes_LDADD = $(libdw) $(libmudflap)
 
184
funcscopes_LDADD = $(libdw) $(libmudflap)
 
185
funcretval_LDADD = $(libdw) $(libmudflap)
 
186
allregs_LDADD = $(libdw) $(libmudflap)
 
187
find_prologues_LDADD = $(libdw) $(libmudflap)
 
188
#show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf) $(libmudflap)
 
189
asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
190
asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
191
asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
192
asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
193
asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
194
asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
195
asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
196
asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
197
asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libmudflap) -ldl
 
198
dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(libmudflap) -ldl
 
199
rdwrmmap_LDADD = $(libelf)
 
200
 
 
201
CLEANFILES = xxx *.gcno *.gcda *gconv
 
202
 
 
203
if GCOV
 
204
check: check-am coverage
 
205
.PHONY: coverage
 
206
coverage:
 
207
        -$(srcdir)/coverage.sh
 
208
endif