]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/Makefile.in
sim: unify platform function & header tests
[thirdparty/binutils-gdb.git] / sim / Makefile.in
CommitLineData
6bddc3e8
MF
1# Makefile.in generated by automake 1.15.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17#
18# Copyright (C) 1993-2021 Free Software Foundation, Inc.
19#
c906108c
SS
20# This program is free software; you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by
4744ac1b 22# the Free Software Foundation; either version 3 of the License, or
c906108c 23# (at your option) any later version.
4744ac1b 24#
c906108c
SS
25# This program is distributed in the hope that it will be useful,
26# but WITHOUT ANY WARRANTY; without even the implied warranty of
27# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28# GNU General Public License for more details.
4744ac1b 29#
c906108c 30# You should have received a copy of the GNU General Public License
4744ac1b 31# along with this program. If not, see <http://www.gnu.org/licenses/>.
6c57b87f 32
5bea0c32
MF
33#
34# Copyright (C) 1997-2021 Free Software Foundation, Inc.
35#
36# This program is free software; you can redistribute it and/or modify
37# it under the terms of the GNU General Public License as published by
38# the Free Software Foundation; either version 3 of the License, or
39# (at your option) any later version.
40#
41# This program is distributed in the hope that it will be useful,
42# but WITHOUT ANY WARRANTY; without even the implied warranty of
43# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44# GNU General Public License for more details.
45#
46# You should have received a copy of the GNU General Public License
47# along with this program. If not, see <http://www.gnu.org/licenses/>.
48
49# Parts of the common/ sim code that have been unified.
50# Most still lives in common/Make-common.in.
51
b6b1c790
MF
52# The IGEN simulator generator for GDB, the GNU Debugger.
53#
54# Copyright 2002-2021 Free Software Foundation, Inc.
55#
56# Contributed by Andrew Cagney.
57#
58# This file is part of GDB.
59#
60# This program is free software; you can redistribute it and/or modify
61# it under the terms of the GNU General Public License as published by
62# the Free Software Foundation; either version 3 of the License, or
63# (at your option) any later version.
64#
65# This program is distributed in the hope that it will be useful,
66# but WITHOUT ANY WARRANTY; without even the implied warranty of
67# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68# GNU General Public License for more details.
69#
70# You should have received a copy of the GNU General Public License
71# along with this program. If not, see <http://www.gnu.org/licenses/>.
72
6c57b87f
MF
73#
74# Copyright (C) 1997-2021 Free Software Foundation, Inc.
75#
76# This program is free software; you can redistribute it and/or modify
77# it under the terms of the GNU General Public License as published by
78# the Free Software Foundation; either version 3 of the License, or
79# (at your option) any later version.
80#
81# This program is distributed in the hope that it will be useful,
82# but WITHOUT ANY WARRANTY; without even the implied warranty of
83# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
84# GNU General Public License for more details.
85#
86# You should have received a copy of the GNU General Public License
87# along with this program. If not, see <http://www.gnu.org/licenses/>.
b6b1c790 88
a389375f
MF
89# Copyright (C) 1997-2021 Free Software Foundation, Inc.
90#
91# This program is free software; you can redistribute it and/or modify
92# it under the terms of the GNU General Public License as published by
93# the Free Software Foundation; either version 3 of the License, or
94# (at your option) any later version.
95#
96# This program is distributed in the hope that it will be useful,
97# but WITHOUT ANY WARRANTY; without even the implied warranty of
98# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
99# GNU General Public License for more details.
100#
101# You should have received a copy of the GNU General Public License
102# along with this program. If not, see <http://www.gnu.org/licenses/>.
103
92bc001e 104
c906108c 105VPATH = @srcdir@
6bddc3e8
MF
106am__is_gnu_make = { \
107 if test -z '$(MAKELEVEL)'; then \
108 false; \
109 elif test -n '$(MAKE_HOST)'; then \
110 true; \
111 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
112 true; \
113 else \
114 false; \
115 fi; \
116}
117am__make_running_with_option = \
118 case $${target_option-} in \
119 ?) ;; \
120 *) echo "am__make_running_with_option: internal error: invalid" \
121 "target option '$${target_option-}' specified" >&2; \
122 exit 1;; \
123 esac; \
124 has_opt=no; \
125 sane_makeflags=$$MAKEFLAGS; \
126 if $(am__is_gnu_make); then \
127 sane_makeflags=$$MFLAGS; \
128 else \
129 case $$MAKEFLAGS in \
130 *\\[\ \ ]*) \
131 bs=\\; \
132 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
133 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
134 esac; \
135 fi; \
136 skip_next=no; \
137 strip_trailopt () \
138 { \
139 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
140 }; \
141 for flg in $$sane_makeflags; do \
142 test $$skip_next = yes && { skip_next=no; continue; }; \
143 case $$flg in \
144 *=*|--*) continue;; \
145 -*I) strip_trailopt 'I'; skip_next=yes;; \
146 -*I?*) strip_trailopt 'I';; \
147 -*O) strip_trailopt 'O'; skip_next=yes;; \
148 -*O?*) strip_trailopt 'O';; \
149 -*l) strip_trailopt 'l'; skip_next=yes;; \
150 -*l?*) strip_trailopt 'l';; \
151 -[dEDm]) skip_next=yes;; \
152 -[JT]) skip_next=yes;; \
153 esac; \
154 case $$flg in \
155 *$$target_option*) has_opt=yes; break;; \
156 esac; \
157 done; \
158 test $$has_opt = yes
159am__make_dryrun = (target_option=n; $(am__make_running_with_option))
160am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
161pkgdatadir = $(datadir)/@PACKAGE@
162pkgincludedir = $(includedir)/@PACKAGE@
163pkglibdir = $(libdir)/@PACKAGE@
164pkglibexecdir = $(libexecdir)/@PACKAGE@
165am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
166install_sh_DATA = $(install_sh) -c -m 644
167install_sh_PROGRAM = $(install_sh) -c
168install_sh_SCRIPT = $(install_sh) -c
169INSTALL_HEADER = $(INSTALL_DATA)
170transform = $(program_transform_name)
171NORMAL_INSTALL = :
172PRE_INSTALL = :
173POST_INSTALL = :
174NORMAL_UNINSTALL = :
175PRE_UNINSTALL = :
176POST_UNINSTALL = :
177build_triplet = @build@
178host_triplet = @host@
179target_triplet = @target@
a389375f
MF
180check_PROGRAMS = $(am__EXEEXT_3)
181EXTRA_PROGRAMS = $(am__EXEEXT_2) testsuite/common/bits-gen$(EXEEXT) \
182 testsuite/common/fpu-tst$(EXEEXT)
5bea0c32
MF
183
184# This makes sure igen is available before building the arch-subdirs which
185# need to run the igen tool.
186@SIM_ENABLE_IGEN_TRUE@am__append_1 = igen/igen$(EXEEXT)
187@SIM_ENABLE_IGEN_TRUE@am__append_2 = igen/libigen.a
b6b1c790 188@SIM_ENABLE_IGEN_TRUE@am__append_3 = $(igen_IGEN_TOOLS)
5bea0c32 189@SIM_ENABLE_IGEN_TRUE@am__append_4 = $(igen_IGEN_TOOLS)
a389375f
MF
190TESTS = testsuite/common/bits32m0$(EXEEXT) \
191 testsuite/common/bits32m31$(EXEEXT) \
192 testsuite/common/bits64m0$(EXEEXT) \
193 testsuite/common/bits64m63$(EXEEXT) \
194 testsuite/common/alu-tst$(EXEEXT)
6bddc3e8
MF
195subdir = .
196ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
197am__aclocal_m4_deps = $(top_srcdir)/../config/depstand.m4 \
198 $(top_srcdir)/../config/lead-dot.m4 \
c2783492 199 $(top_srcdir)/../config/override.m4 \
b15c5d7a 200 $(top_srcdir)/m4/sim_ac_platform.m4 \
c2783492
MF
201 $(top_srcdir)/m4/sim_ac_toolchain.m4 \
202 $(top_srcdir)/configure.ac
6bddc3e8
MF
203am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
204 $(ACLOCAL_M4)
205DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
92bc001e 206 $(am__configure_deps) $(pkginclude_HEADERS)
6bddc3e8
MF
207am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
208 configure.lineno config.status.lineno
209mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
b15c5d7a 210CONFIG_HEADER = config.h
6c57b87f 211CONFIG_CLEAN_FILES =
6bddc3e8 212CONFIG_CLEAN_VPATH_FILES =
b6b1c790
MF
213LIBRARIES = $(noinst_LIBRARIES)
214ARFLAGS = cru
215AM_V_AR = $(am__v_AR_@AM_V@)
216am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@)
217am__v_AR_0 = @echo " AR " $@;
218am__v_AR_1 =
5bea0c32
MF
219common_libcommon_a_AR = $(AR) $(ARFLAGS)
220common_libcommon_a_LIBADD =
221am__dirstamp = $(am__leading_dot)dirstamp
222am_common_libcommon_a_OBJECTS = common/version.$(OBJEXT)
223common_libcommon_a_OBJECTS = $(am_common_libcommon_a_OBJECTS)
b6b1c790
MF
224igen_libigen_a_AR = $(AR) $(ARFLAGS)
225igen_libigen_a_LIBADD =
b6b1c790
MF
226@SIM_ENABLE_IGEN_TRUE@am_igen_libigen_a_OBJECTS = \
227@SIM_ENABLE_IGEN_TRUE@ igen/table.$(OBJEXT) igen/lf.$(OBJEXT) \
228@SIM_ENABLE_IGEN_TRUE@ igen/misc.$(OBJEXT) \
229@SIM_ENABLE_IGEN_TRUE@ igen/filter_host.$(OBJEXT) \
230@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode.$(OBJEXT) \
231@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache.$(OBJEXT) \
232@SIM_ENABLE_IGEN_TRUE@ igen/filter.$(OBJEXT) \
233@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn.$(OBJEXT) \
234@SIM_ENABLE_IGEN_TRUE@ igen/gen-model.$(OBJEXT) \
235@SIM_ENABLE_IGEN_TRUE@ igen/gen-itable.$(OBJEXT) \
236@SIM_ENABLE_IGEN_TRUE@ igen/gen-icache.$(OBJEXT) \
237@SIM_ENABLE_IGEN_TRUE@ igen/gen-semantics.$(OBJEXT) \
238@SIM_ENABLE_IGEN_TRUE@ igen/gen-idecode.$(OBJEXT) \
239@SIM_ENABLE_IGEN_TRUE@ igen/gen-support.$(OBJEXT) \
240@SIM_ENABLE_IGEN_TRUE@ igen/gen-engine.$(OBJEXT) \
241@SIM_ENABLE_IGEN_TRUE@ igen/gen.$(OBJEXT)
242igen_libigen_a_OBJECTS = $(am_igen_libigen_a_OBJECTS)
243@SIM_ENABLE_IGEN_TRUE@am__EXEEXT_1 = igen/igen$(EXEEXT) \
244@SIM_ENABLE_IGEN_TRUE@ igen/filter$(EXEEXT) igen/gen$(EXEEXT) \
245@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache$(EXEEXT) \
246@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode$(EXEEXT) \
247@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn$(EXEEXT) \
248@SIM_ENABLE_IGEN_TRUE@ igen/table$(EXEEXT)
249@SIM_ENABLE_IGEN_TRUE@am__EXEEXT_2 = $(am__EXEEXT_1)
a389375f
MF
250am__EXEEXT_3 = testsuite/common/bits32m0$(EXEEXT) \
251 testsuite/common/bits32m31$(EXEEXT) \
252 testsuite/common/bits64m0$(EXEEXT) \
253 testsuite/common/bits64m63$(EXEEXT) \
254 testsuite/common/alu-tst$(EXEEXT)
b6b1c790
MF
255am_igen_filter_OBJECTS =
256igen_filter_OBJECTS = $(am_igen_filter_OBJECTS)
257@SIM_ENABLE_IGEN_TRUE@igen_filter_DEPENDENCIES = igen/filter-main.o \
258@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
259am_igen_gen_OBJECTS =
260igen_gen_OBJECTS = $(am_igen_gen_OBJECTS)
261@SIM_ENABLE_IGEN_TRUE@igen_gen_DEPENDENCIES = igen/gen-main.o \
262@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
263@SIM_ENABLE_IGEN_TRUE@am_igen_igen_OBJECTS = igen/igen.$(OBJEXT)
264igen_igen_OBJECTS = $(am_igen_igen_OBJECTS)
265@SIM_ENABLE_IGEN_TRUE@igen_igen_DEPENDENCIES = igen/libigen.a
266am_igen_ld_cache_OBJECTS =
267igen_ld_cache_OBJECTS = $(am_igen_ld_cache_OBJECTS)
268@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_DEPENDENCIES = \
269@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache-main.o igen/libigen.a
270am_igen_ld_decode_OBJECTS =
271igen_ld_decode_OBJECTS = $(am_igen_ld_decode_OBJECTS)
272@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_DEPENDENCIES = \
273@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode-main.o igen/libigen.a
274am_igen_ld_insn_OBJECTS =
275igen_ld_insn_OBJECTS = $(am_igen_ld_insn_OBJECTS)
276@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_DEPENDENCIES = igen/ld-insn-main.o \
277@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
278am_igen_table_OBJECTS =
279igen_table_OBJECTS = $(am_igen_table_OBJECTS)
280@SIM_ENABLE_IGEN_TRUE@igen_table_DEPENDENCIES = igen/table-main.o \
281@SIM_ENABLE_IGEN_TRUE@ igen/libigen.a
a389375f
MF
282testsuite_common_alu_tst_SOURCES = testsuite/common/alu-tst.c
283testsuite_common_alu_tst_OBJECTS = testsuite/common/alu-tst.$(OBJEXT)
284testsuite_common_alu_tst_LDADD = $(LDADD)
285testsuite_common_bits_gen_SOURCES = testsuite/common/bits-gen.c
286testsuite_common_bits_gen_OBJECTS = \
287 testsuite/common/bits-gen.$(OBJEXT)
288testsuite_common_bits_gen_LDADD = $(LDADD)
289testsuite_common_bits32m0_SOURCES = testsuite/common/bits32m0.c
290testsuite_common_bits32m0_OBJECTS = \
291 testsuite/common/bits32m0.$(OBJEXT)
292testsuite_common_bits32m0_LDADD = $(LDADD)
293testsuite_common_bits32m31_SOURCES = testsuite/common/bits32m31.c
294testsuite_common_bits32m31_OBJECTS = \
295 testsuite/common/bits32m31.$(OBJEXT)
296testsuite_common_bits32m31_LDADD = $(LDADD)
297testsuite_common_bits64m0_SOURCES = testsuite/common/bits64m0.c
298testsuite_common_bits64m0_OBJECTS = \
299 testsuite/common/bits64m0.$(OBJEXT)
300testsuite_common_bits64m0_LDADD = $(LDADD)
301testsuite_common_bits64m63_SOURCES = testsuite/common/bits64m63.c
302testsuite_common_bits64m63_OBJECTS = \
303 testsuite/common/bits64m63.$(OBJEXT)
304testsuite_common_bits64m63_LDADD = $(LDADD)
305testsuite_common_fpu_tst_SOURCES = testsuite/common/fpu-tst.c
306testsuite_common_fpu_tst_OBJECTS = testsuite/common/fpu-tst.$(OBJEXT)
307testsuite_common_fpu_tst_LDADD = $(LDADD)
6bddc3e8
MF
308AM_V_P = $(am__v_P_@AM_V@)
309am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
310am__v_P_0 = false
311am__v_P_1 = :
312AM_V_GEN = $(am__v_GEN_@AM_V@)
313am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
314am__v_GEN_0 = @echo " GEN " $@;
315am__v_GEN_1 =
316AM_V_at = $(am__v_at_@AM_V@)
317am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
318am__v_at_0 = @
319am__v_at_1 =
b6b1c790
MF
320DEFAULT_INCLUDES = -I.@am__isrc@
321depcomp = $(SHELL) $(top_srcdir)/../depcomp
322am__depfiles_maybe = depfiles
323am__mv = mv -f
324COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
325 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
326AM_V_CC = $(am__v_CC_@AM_V@)
327am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
328am__v_CC_0 = @echo " CC " $@;
329am__v_CC_1 =
330CCLD = $(CC)
331LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
332AM_V_CCLD = $(am__v_CCLD_@AM_V@)
333am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
334am__v_CCLD_0 = @echo " CCLD " $@;
335am__v_CCLD_1 =
5bea0c32
MF
336SOURCES = $(common_libcommon_a_SOURCES) $(igen_libigen_a_SOURCES) \
337 $(igen_filter_SOURCES) $(igen_gen_SOURCES) \
338 $(igen_igen_SOURCES) $(igen_ld_cache_SOURCES) \
339 $(igen_ld_decode_SOURCES) $(igen_ld_insn_SOURCES) \
340 $(igen_table_SOURCES) testsuite/common/alu-tst.c \
341 testsuite/common/bits-gen.c testsuite/common/bits32m0.c \
342 testsuite/common/bits32m31.c testsuite/common/bits64m0.c \
343 testsuite/common/bits64m63.c testsuite/common/fpu-tst.c
6bddc3e8
MF
344RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
345 ctags-recursive dvi-recursive html-recursive info-recursive \
346 install-data-recursive install-dvi-recursive \
347 install-exec-recursive install-html-recursive \
348 install-info-recursive install-pdf-recursive \
349 install-ps-recursive install-recursive installcheck-recursive \
350 installdirs-recursive pdf-recursive ps-recursive \
351 tags-recursive uninstall-recursive
352am__can_run_installinfo = \
353 case $$AM_UPDATE_INFO_DIR in \
354 n|no|NO) false;; \
355 *) (install-info --version) >/dev/null 2>&1;; \
356 esac
92bc001e
MF
357am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
358am__vpath_adj = case $$p in \
359 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
360 *) f=$$p;; \
361 esac;
362am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
363am__install_max = 40
364am__nobase_strip_setup = \
365 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
366am__nobase_strip = \
367 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
368am__nobase_list = $(am__nobase_strip_setup); \
369 for p in $$list; do echo "$$p $$p"; done | \
370 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
371 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
372 if (++n[$$2] == $(am__install_max)) \
373 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
374 END { for (dir in files) print dir, files[dir] }'
375am__base_list = \
376 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
377 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
378am__uninstall_files_from_dir = { \
379 test -z "$$files" \
380 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
381 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
382 $(am__cd) "$$dir" && rm -f $$files; }; \
383 }
384am__installdirs = "$(DESTDIR)$(pkgincludedir)"
385HEADERS = $(pkginclude_HEADERS)
6bddc3e8
MF
386RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
387 distclean-recursive maintainer-clean-recursive
388am__recursive_targets = \
389 $(RECURSIVE_TARGETS) \
390 $(RECURSIVE_CLEAN_TARGETS) \
391 $(am__extra_recursive_targets)
392AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
a389375f 393 cscope check recheck
b15c5d7a
MF
394am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
395 $(LISP)config.h.in
6bddc3e8
MF
396# Read a list of newline-separated strings from the standard input,
397# and print each of them once, without duplicates. Input order is
398# *not* preserved.
399am__uniquify_input = $(AWK) '\
400 BEGIN { nonempty = 0; } \
401 { items[$$0] = 1; nonempty = 1; } \
402 END { if (nonempty) { for (i in items) print i; }; } \
403'
404# Make sure the list of sources is unique. This is necessary because,
405# e.g., the same source file might be shared among _SOURCES variables
406# for different programs/libraries.
407am__define_uniq_tagged_files = \
408 list='$(am__tagged_files)'; \
409 unique=`for i in $$list; do \
410 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
411 done | $(am__uniquify_input)`
412ETAGS = etags
413CTAGS = ctags
414CSCOPE = cscope
6c57b87f
MF
415DEJATOOL = $(PACKAGE)
416RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir
417EXPECT = expect
418RUNTEST = runtest
a389375f
MF
419am__tty_colors_dummy = \
420 mgn= red= grn= lgn= blu= brg= std=; \
421 am__color_tests=no
422am__tty_colors = { \
423 $(am__tty_colors_dummy); \
424 if test "X$(AM_COLOR_TESTS)" = Xno; then \
425 am__color_tests=no; \
426 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
427 am__color_tests=yes; \
428 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
429 am__color_tests=yes; \
430 fi; \
431 if test $$am__color_tests = yes; then \
432 red='\e[0;31m'; \
433 grn='\e[0;32m'; \
434 lgn='\e[1;32m'; \
435 blu='\e[1;34m'; \
436 mgn='\e[0;35m'; \
437 brg='\e[1m'; \
438 std='\e[m'; \
439 fi; \
440}
a389375f
MF
441am__recheck_rx = ^[ ]*:recheck:[ ]*
442am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
443am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
444# A command that, given a newline-separated list of test names on the
445# standard input, print the name of the tests that are to be re-run
446# upon "make recheck".
447am__list_recheck_tests = $(AWK) '{ \
448 recheck = 1; \
449 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
450 { \
451 if (rc < 0) \
452 { \
453 if ((getline line2 < ($$0 ".log")) < 0) \
454 recheck = 0; \
455 break; \
456 } \
457 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
458 { \
459 recheck = 0; \
460 break; \
461 } \
462 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
463 { \
464 break; \
465 } \
466 }; \
467 if (recheck) \
468 print $$0; \
469 close ($$0 ".trs"); \
470 close ($$0 ".log"); \
471}'
472# A command that, given a newline-separated list of test names on the
473# standard input, create the global log from their .trs and .log files.
474am__create_global_log = $(AWK) ' \
475function fatal(msg) \
476{ \
477 print "fatal: making $@: " msg | "cat >&2"; \
478 exit 1; \
479} \
480function rst_section(header) \
481{ \
482 print header; \
483 len = length(header); \
484 for (i = 1; i <= len; i = i + 1) \
485 printf "="; \
486 printf "\n\n"; \
487} \
488{ \
489 copy_in_global_log = 1; \
490 global_test_result = "RUN"; \
491 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
492 { \
493 if (rc < 0) \
494 fatal("failed to read from " $$0 ".trs"); \
495 if (line ~ /$(am__global_test_result_rx)/) \
496 { \
497 sub("$(am__global_test_result_rx)", "", line); \
498 sub("[ ]*$$", "", line); \
499 global_test_result = line; \
500 } \
501 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
502 copy_in_global_log = 0; \
503 }; \
504 if (copy_in_global_log) \
505 { \
506 rst_section(global_test_result ": " $$0); \
507 while ((rc = (getline line < ($$0 ".log"))) != 0) \
508 { \
509 if (rc < 0) \
510 fatal("failed to read from " $$0 ".log"); \
511 print line; \
512 }; \
513 printf "\n"; \
514 }; \
515 close ($$0 ".trs"); \
516 close ($$0 ".log"); \
517}'
518# Restructured Text title.
519am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
520# Solaris 10 'make', and several other traditional 'make' implementations,
521# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
522# by disabling -e (using the XSI extension "set +e") if it's set.
523am__sh_e_setup = case $$- in *e*) set +e;; esac
524# Default flags passed to test drivers.
525am__common_driver_flags = \
526 --color-tests "$$am__color_tests" \
527 --enable-hard-errors "$$am__enable_hard_errors" \
528 --expect-failure "$$am__expect_failure"
529# To be inserted before the command running the test. Creates the
530# directory for the log if needed. Stores in $dir the directory
531# containing $f, in $tst the test, in $log the log. Executes the
532# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
533# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
534# will run the test scripts (or their associated LOG_COMPILER, if
535# thy have one).
536am__check_pre = \
537$(am__sh_e_setup); \
538$(am__vpath_adj_setup) $(am__vpath_adj) \
539$(am__tty_colors); \
540srcdir=$(srcdir); export srcdir; \
541case "$@" in \
542 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
543 *) am__odir=.;; \
544esac; \
545test "x$$am__odir" = x"." || test -d "$$am__odir" \
546 || $(MKDIR_P) "$$am__odir" || exit $$?; \
547if test -f "./$$f"; then dir=./; \
548elif test -f "$$f"; then dir=; \
549else dir="$(srcdir)/"; fi; \
550tst=$$dir$$f; log='$@'; \
551if test -n '$(DISABLE_HARD_ERRORS)'; then \
552 am__enable_hard_errors=no; \
553else \
554 am__enable_hard_errors=yes; \
555fi; \
556case " $(XFAIL_TESTS) " in \
557 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
558 am__expect_failure=yes;; \
559 *) \
560 am__expect_failure=no;; \
561esac; \
562$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
563# A shell command to get the names of the tests scripts with any registered
564# extension removed (i.e., equivalently, the names of the test logs, with
565# the '.log' extension removed). The result is saved in the shell variable
566# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
567# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
568# since that might cause problem with VPATH rewrites for suffix-less tests.
569# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
570am__set_TESTS_bases = \
571 bases='$(TEST_LOGS)'; \
572 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
573 bases=`echo $$bases`
574RECHECK_LOGS = $(TEST_LOGS)
575TEST_SUITE_LOG = test-suite.log
576TEST_EXTENSIONS = @EXEEXT@ .test
577LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver
578LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
579am__set_b = \
580 case '$@' in \
581 */*) \
582 case '$*' in \
583 */*) b='$*';; \
584 *) b=`echo '$@' | sed 's/\.log$$//'`; \
585 esac;; \
586 *) \
587 b='$*';; \
588 esac
589am__test_logs1 = $(TESTS:=.log)
590am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
591TEST_LOGS = $(am__test_logs2:.test.log=.log)
592TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/../test-driver
593TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
594 $(TEST_LOG_FLAGS)
6bddc3e8
MF
595DIST_SUBDIRS = $(SUBDIRS)
596ACLOCAL = @ACLOCAL@
597AMTAR = @AMTAR@
598AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
599AR = @AR@
aa0fca16 600AR_FOR_BUILD = @AR_FOR_BUILD@
6bddc3e8
MF
601AUTOCONF = @AUTOCONF@
602AUTOHEADER = @AUTOHEADER@
603AUTOMAKE = @AUTOMAKE@
604AWK = @AWK@
605CC = @CC@
606CCDEPMODE = @CCDEPMODE@
607CC_FOR_BUILD = @CC_FOR_BUILD@
608CFLAGS = @CFLAGS@
609CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
610CPP = @CPP@
611CPPFLAGS = @CPPFLAGS@
612CYGPATH_W = @CYGPATH_W@
c2783492 613C_DIALECT = @C_DIALECT@
6bddc3e8
MF
614DEFS = @DEFS@
615DEPDIR = @DEPDIR@
616ECHO_C = @ECHO_C@
617ECHO_N = @ECHO_N@
618ECHO_T = @ECHO_T@
c2783492 619EGREP = @EGREP@
6bddc3e8 620EXEEXT = @EXEEXT@
c2783492 621GREP = @GREP@
6bddc3e8
MF
622INSTALL = @INSTALL@
623INSTALL_DATA = @INSTALL_DATA@
624INSTALL_PROGRAM = @INSTALL_PROGRAM@
625INSTALL_SCRIPT = @INSTALL_SCRIPT@
626INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
627LDFLAGS = @LDFLAGS@
c2783492 628LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@
6bddc3e8
MF
629LIBOBJS = @LIBOBJS@
630LIBS = @LIBS@
631LTLIBOBJS = @LTLIBOBJS@
8c379db2 632MAINT = @MAINT@
6bddc3e8
MF
633MAKEINFO = @MAKEINFO@
634MKDIR_P = @MKDIR_P@
635OBJEXT = @OBJEXT@
636PACKAGE = @PACKAGE@
637PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
638PACKAGE_NAME = @PACKAGE_NAME@
639PACKAGE_STRING = @PACKAGE_STRING@
640PACKAGE_TARNAME = @PACKAGE_TARNAME@
641PACKAGE_URL = @PACKAGE_URL@
642PACKAGE_VERSION = @PACKAGE_VERSION@
643PATH_SEPARATOR = @PATH_SEPARATOR@
644RANLIB = @RANLIB@
aa0fca16 645RANLIB_FOR_BUILD = @RANLIB_FOR_BUILD@
6bddc3e8
MF
646SET_MAKE = @SET_MAKE@
647SHELL = @SHELL@
a0e674c1 648SIM_PRIMARY_TARGET = @SIM_PRIMARY_TARGET@
6bddc3e8
MF
649STRIP = @STRIP@
650VERSION = @VERSION@
651abs_builddir = @abs_builddir@
5e25901f 652abs_srcdir = @abs_srcdir@
6bddc3e8
MF
653abs_top_builddir = @abs_top_builddir@
654abs_top_srcdir = @abs_top_srcdir@
655ac_ct_CC = @ac_ct_CC@
656am__include = @am__include@
657am__leading_dot = @am__leading_dot@
658am__quote = @am__quote@
659am__tar = @am__tar@
660am__untar = @am__untar@
661bindir = @bindir@
662build = @build@
663build_alias = @build_alias@
664build_cpu = @build_cpu@
665build_os = @build_os@
666build_vendor = @build_vendor@
667builddir = @builddir@
668datadir = @datadir@
669datarootdir = @datarootdir@
670docdir = @docdir@
671dvidir = @dvidir@
c906108c 672exec_prefix = @exec_prefix@
6bddc3e8 673host = @host@
c906108c 674host_alias = @host_alias@
6bddc3e8
MF
675host_cpu = @host_cpu@
676host_os = @host_os@
677host_vendor = @host_vendor@
678htmldir = @htmldir@
679includedir = @includedir@
680infodir = @infodir@
681install_sh = @install_sh@
c906108c 682libdir = @libdir@
6bddc3e8
MF
683libexecdir = @libexecdir@
684localedir = @localedir@
685localstatedir = @localstatedir@
c906108c 686mandir = @mandir@
6bddc3e8
MF
687mkdir_p = @mkdir_p@
688oldincludedir = @oldincludedir@
689pdfdir = @pdfdir@
690prefix = @prefix@
691program_transform_name = @program_transform_name@
692psdir = @psdir@
693sbindir = @sbindir@
694sharedstatedir = @sharedstatedir@
695srcdir = @srcdir@
696subdirs = @subdirs@
697sysconfdir = @sysconfdir@
698target = @target@
699target_alias = @target_alias@
700target_cpu = @target_cpu@
701target_os = @target_os@
702target_vendor = @target_vendor@
703top_build_prefix = @top_build_prefix@
704top_builddir = @top_builddir@
705top_srcdir = @top_srcdir@
6c57b87f 706AUTOMAKE_OPTIONS = dejagnu foreign no-dist subdir-objects
c2783492 707ACLOCAL_AMFLAGS = -Im4 -I.. -I../config
6bddc3e8
MF
708srcroot = $(srcdir)/..
709SUBDIRS = @subdirs@
a0e674c1 710AM_MAKEFLAGS = SIM_PRIMARY_TARGET=$(SIM_PRIMARY_TARGET)
5bea0c32
MF
711
712# NB: libcommon.a isn't used directly by ports. We need a target for common
713# objects to be a part of, and ports use the individual objects directly.
714noinst_LIBRARIES = common/libcommon.a $(am__append_2)
a389375f
MF
715CLEANFILES = testsuite/common/bits-gen testsuite/common/bits32m0.c \
716 testsuite/common/bits32m31.c testsuite/common/bits64m0.c \
717 testsuite/common/bits64m63.c
718DISTCLEANFILES =
5bea0c32 719MOSTLYCLEANFILES = core $(am__append_4) site-srcdir.exp testrun.log \
b6b1c790 720 testrun.sum
5bea0c32 721AM_CPPFLAGS = -I$(srcroot)/include -I$(srcdir)/common
c2783492
MF
722COMPILE_FOR_BUILD = $(CC_FOR_BUILD) $(AM_CPPFLAGS) $(CFLAGS_FOR_BUILD)
723LINK_FOR_BUILD = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@
5bea0c32
MF
724
725# Deps to add to the all-recursive target. These are built before descending
726# into any subdirs.
727
728# This makes sure common parts are available before building the arch-subdirs
729# which will refer to these.
730SIM_ALL_RECURSIVE_DEPS = common/libcommon.a $(am__append_1)
92bc001e
MF
731pkginclude_HEADERS = \
732 $(srcroot)/include/sim/callback.h \
733 $(srcroot)/include/sim/sim.h
734
5bea0c32
MF
735common_libcommon_a_SOURCES = \
736 common/version.c
737
b6b1c790
MF
738@SIM_ENABLE_IGEN_TRUE@igen_libigen_a_SOURCES = \
739@SIM_ENABLE_IGEN_TRUE@ igen/table.c \
740@SIM_ENABLE_IGEN_TRUE@ igen/lf.c \
741@SIM_ENABLE_IGEN_TRUE@ igen/misc.c \
742@SIM_ENABLE_IGEN_TRUE@ igen/filter_host.c \
743@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode.c \
744@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache.c \
745@SIM_ENABLE_IGEN_TRUE@ igen/filter.c \
746@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn.c \
747@SIM_ENABLE_IGEN_TRUE@ igen/gen-model.c \
748@SIM_ENABLE_IGEN_TRUE@ igen/gen-itable.c \
749@SIM_ENABLE_IGEN_TRUE@ igen/gen-icache.c \
750@SIM_ENABLE_IGEN_TRUE@ igen/gen-semantics.c \
751@SIM_ENABLE_IGEN_TRUE@ igen/gen-idecode.c \
752@SIM_ENABLE_IGEN_TRUE@ igen/gen-support.c \
753@SIM_ENABLE_IGEN_TRUE@ igen/gen-engine.c \
754@SIM_ENABLE_IGEN_TRUE@ igen/gen.c
755
756@SIM_ENABLE_IGEN_TRUE@igen_igen_SOURCES = igen/igen.c
757@SIM_ENABLE_IGEN_TRUE@igen_igen_LDADD = igen/libigen.a
758@SIM_ENABLE_IGEN_TRUE@igen_filter_SOURCES =
759@SIM_ENABLE_IGEN_TRUE@igen_filter_LDADD = igen/filter-main.o igen/libigen.a
760@SIM_ENABLE_IGEN_TRUE@igen_gen_SOURCES =
761@SIM_ENABLE_IGEN_TRUE@igen_gen_LDADD = igen/gen-main.o igen/libigen.a
762@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_SOURCES =
763@SIM_ENABLE_IGEN_TRUE@igen_ld_cache_LDADD = igen/ld-cache-main.o igen/libigen.a
764@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_SOURCES =
765@SIM_ENABLE_IGEN_TRUE@igen_ld_decode_LDADD = igen/ld-decode-main.o igen/libigen.a
766@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_SOURCES =
767@SIM_ENABLE_IGEN_TRUE@igen_ld_insn_LDADD = igen/ld-insn-main.o igen/libigen.a
768@SIM_ENABLE_IGEN_TRUE@igen_table_SOURCES =
769@SIM_ENABLE_IGEN_TRUE@igen_table_LDADD = igen/table-main.o igen/libigen.a
770@SIM_ENABLE_IGEN_TRUE@igen_IGEN_TOOLS = \
771@SIM_ENABLE_IGEN_TRUE@ igen/igen \
772@SIM_ENABLE_IGEN_TRUE@ igen/filter \
773@SIM_ENABLE_IGEN_TRUE@ igen/gen \
774@SIM_ENABLE_IGEN_TRUE@ igen/ld-cache \
775@SIM_ENABLE_IGEN_TRUE@ igen/ld-decode \
776@SIM_ENABLE_IGEN_TRUE@ igen/ld-insn \
777@SIM_ENABLE_IGEN_TRUE@ igen/table
778
6c57b87f
MF
779
780# Tweak the site.exp so it works with plain `runtest` from user.
781EXTRA_DEJAGNU_SITE_CONFIG = site-srcdir.exp
a389375f
MF
782testsuite_common_CPPFLAGS = \
783 -I$(srcdir)/common \
0d315c88
DD
784 -I$(srcroot)/include \
785 -I../bfd
a389375f 786
b15c5d7a
MF
787all: config.h
788 $(MAKE) $(AM_MAKEFLAGS) all-recursive
6bddc3e8
MF
789
790.SUFFIXES:
a389375f 791.SUFFIXES: .c .log .o .obj .test .test$(EXEEXT) .trs
6bddc3e8
MF
792am--refresh: Makefile
793 @:
5bea0c32 794$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(am__configure_deps)
6bddc3e8
MF
795 @for dep in $?; do \
796 case '$(am__configure_deps)' in \
797 *$$dep*) \
798 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
799 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
800 && exit 0; \
801 exit 1;; \
802 esac; \
803 done; \
804 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
805 $(am__cd) $(top_srcdir) && \
806 $(AUTOMAKE) --foreign Makefile
807Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
808 @case '$?' in \
809 *config.status*) \
810 echo ' $(SHELL) ./config.status'; \
811 $(SHELL) ./config.status;; \
812 *) \
813 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
814 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
815 esac;
5bea0c32 816$(srcdir)/common/local.mk $(srcdir)/igen/local.mk $(srcdir)/testsuite/local.mk $(srcdir)/testsuite/common/local.mk $(am__empty):
6bddc3e8
MF
817
818$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
819 $(SHELL) ./config.status --recheck
c906108c 820
8c379db2 821$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
6bddc3e8 822 $(am__cd) $(srcdir) && $(AUTOCONF)
8c379db2 823$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
6bddc3e8
MF
824 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
825$(am__aclocal_m4_deps):
6bddc3e8 826
b15c5d7a
MF
827config.h: stamp-h1
828 @test -f $@ || rm -f stamp-h1
829 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
830
831stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
832 @rm -f stamp-h1
833 cd $(top_builddir) && $(SHELL) ./config.status config.h
834$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
835 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
836 rm -f stamp-h1
837 touch $@
838
839distclean-hdr:
840 -rm -f config.h stamp-h1
841
b6b1c790
MF
842clean-noinstLIBRARIES:
843 -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
5bea0c32
MF
844common/$(am__dirstamp):
845 @$(MKDIR_P) common
846 @: > common/$(am__dirstamp)
847common/$(DEPDIR)/$(am__dirstamp):
848 @$(MKDIR_P) common/$(DEPDIR)
849 @: > common/$(DEPDIR)/$(am__dirstamp)
850common/version.$(OBJEXT): common/$(am__dirstamp) \
851 common/$(DEPDIR)/$(am__dirstamp)
852
853common/libcommon.a: $(common_libcommon_a_OBJECTS) $(common_libcommon_a_DEPENDENCIES) $(EXTRA_common_libcommon_a_DEPENDENCIES) common/$(am__dirstamp)
854 $(AM_V_at)-rm -f common/libcommon.a
855 $(AM_V_AR)$(common_libcommon_a_AR) common/libcommon.a $(common_libcommon_a_OBJECTS) $(common_libcommon_a_LIBADD)
856 $(AM_V_at)$(RANLIB) common/libcommon.a
b6b1c790
MF
857igen/$(am__dirstamp):
858 @$(MKDIR_P) igen
859 @: > igen/$(am__dirstamp)
860igen/$(DEPDIR)/$(am__dirstamp):
861 @$(MKDIR_P) igen/$(DEPDIR)
862 @: > igen/$(DEPDIR)/$(am__dirstamp)
863igen/table.$(OBJEXT): igen/$(am__dirstamp) \
864 igen/$(DEPDIR)/$(am__dirstamp)
865igen/lf.$(OBJEXT): igen/$(am__dirstamp) igen/$(DEPDIR)/$(am__dirstamp)
866igen/misc.$(OBJEXT): igen/$(am__dirstamp) \
867 igen/$(DEPDIR)/$(am__dirstamp)
868igen/filter_host.$(OBJEXT): igen/$(am__dirstamp) \
869 igen/$(DEPDIR)/$(am__dirstamp)
870igen/ld-decode.$(OBJEXT): igen/$(am__dirstamp) \
871 igen/$(DEPDIR)/$(am__dirstamp)
872igen/ld-cache.$(OBJEXT): igen/$(am__dirstamp) \
873 igen/$(DEPDIR)/$(am__dirstamp)
874igen/filter.$(OBJEXT): igen/$(am__dirstamp) \
875 igen/$(DEPDIR)/$(am__dirstamp)
876igen/ld-insn.$(OBJEXT): igen/$(am__dirstamp) \
877 igen/$(DEPDIR)/$(am__dirstamp)
878igen/gen-model.$(OBJEXT): igen/$(am__dirstamp) \
879 igen/$(DEPDIR)/$(am__dirstamp)
880igen/gen-itable.$(OBJEXT): igen/$(am__dirstamp) \
881 igen/$(DEPDIR)/$(am__dirstamp)
882igen/gen-icache.$(OBJEXT): igen/$(am__dirstamp) \
883 igen/$(DEPDIR)/$(am__dirstamp)
884igen/gen-semantics.$(OBJEXT): igen/$(am__dirstamp) \
885 igen/$(DEPDIR)/$(am__dirstamp)
886igen/gen-idecode.$(OBJEXT): igen/$(am__dirstamp) \
887 igen/$(DEPDIR)/$(am__dirstamp)
888igen/gen-support.$(OBJEXT): igen/$(am__dirstamp) \
889 igen/$(DEPDIR)/$(am__dirstamp)
890igen/gen-engine.$(OBJEXT): igen/$(am__dirstamp) \
891 igen/$(DEPDIR)/$(am__dirstamp)
892igen/gen.$(OBJEXT): igen/$(am__dirstamp) \
893 igen/$(DEPDIR)/$(am__dirstamp)
894
aa0fca16
MF
895@SIM_ENABLE_IGEN_FALSE@igen/libigen.a: $(igen_libigen_a_OBJECTS) $(igen_libigen_a_DEPENDENCIES) $(EXTRA_igen_libigen_a_DEPENDENCIES) igen/$(am__dirstamp)
896@SIM_ENABLE_IGEN_FALSE@ $(AM_V_at)-rm -f igen/libigen.a
897@SIM_ENABLE_IGEN_FALSE@ $(AM_V_AR)$(igen_libigen_a_AR) igen/libigen.a $(igen_libigen_a_OBJECTS) $(igen_libigen_a_LIBADD)
898@SIM_ENABLE_IGEN_FALSE@ $(AM_V_at)$(RANLIB) igen/libigen.a
b6b1c790 899
a389375f
MF
900clean-checkPROGRAMS:
901 -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
902
b6b1c790
MF
903igen/filter$(EXEEXT): $(igen_filter_OBJECTS) $(igen_filter_DEPENDENCIES) $(EXTRA_igen_filter_DEPENDENCIES) igen/$(am__dirstamp)
904 @rm -f igen/filter$(EXEEXT)
905 $(AM_V_CCLD)$(LINK) $(igen_filter_OBJECTS) $(igen_filter_LDADD) $(LIBS)
906
907igen/gen$(EXEEXT): $(igen_gen_OBJECTS) $(igen_gen_DEPENDENCIES) $(EXTRA_igen_gen_DEPENDENCIES) igen/$(am__dirstamp)
908 @rm -f igen/gen$(EXEEXT)
909 $(AM_V_CCLD)$(LINK) $(igen_gen_OBJECTS) $(igen_gen_LDADD) $(LIBS)
910igen/igen.$(OBJEXT): igen/$(am__dirstamp) \
911 igen/$(DEPDIR)/$(am__dirstamp)
912
913@SIM_ENABLE_IGEN_FALSE@igen/igen$(EXEEXT): $(igen_igen_OBJECTS) $(igen_igen_DEPENDENCIES) $(EXTRA_igen_igen_DEPENDENCIES) igen/$(am__dirstamp)
914@SIM_ENABLE_IGEN_FALSE@ @rm -f igen/igen$(EXEEXT)
915@SIM_ENABLE_IGEN_FALSE@ $(AM_V_CCLD)$(LINK) $(igen_igen_OBJECTS) $(igen_igen_LDADD) $(LIBS)
916
917igen/ld-cache$(EXEEXT): $(igen_ld_cache_OBJECTS) $(igen_ld_cache_DEPENDENCIES) $(EXTRA_igen_ld_cache_DEPENDENCIES) igen/$(am__dirstamp)
918 @rm -f igen/ld-cache$(EXEEXT)
919 $(AM_V_CCLD)$(LINK) $(igen_ld_cache_OBJECTS) $(igen_ld_cache_LDADD) $(LIBS)
920
921igen/ld-decode$(EXEEXT): $(igen_ld_decode_OBJECTS) $(igen_ld_decode_DEPENDENCIES) $(EXTRA_igen_ld_decode_DEPENDENCIES) igen/$(am__dirstamp)
922 @rm -f igen/ld-decode$(EXEEXT)
923 $(AM_V_CCLD)$(LINK) $(igen_ld_decode_OBJECTS) $(igen_ld_decode_LDADD) $(LIBS)
924
925igen/ld-insn$(EXEEXT): $(igen_ld_insn_OBJECTS) $(igen_ld_insn_DEPENDENCIES) $(EXTRA_igen_ld_insn_DEPENDENCIES) igen/$(am__dirstamp)
926 @rm -f igen/ld-insn$(EXEEXT)
927 $(AM_V_CCLD)$(LINK) $(igen_ld_insn_OBJECTS) $(igen_ld_insn_LDADD) $(LIBS)
928
929igen/table$(EXEEXT): $(igen_table_OBJECTS) $(igen_table_DEPENDENCIES) $(EXTRA_igen_table_DEPENDENCIES) igen/$(am__dirstamp)
930 @rm -f igen/table$(EXEEXT)
931 $(AM_V_CCLD)$(LINK) $(igen_table_OBJECTS) $(igen_table_LDADD) $(LIBS)
a389375f
MF
932testsuite/common/$(am__dirstamp):
933 @$(MKDIR_P) testsuite/common
934 @: > testsuite/common/$(am__dirstamp)
935testsuite/common/$(DEPDIR)/$(am__dirstamp):
936 @$(MKDIR_P) testsuite/common/$(DEPDIR)
937 @: > testsuite/common/$(DEPDIR)/$(am__dirstamp)
938testsuite/common/alu-tst.$(OBJEXT): testsuite/common/$(am__dirstamp) \
939 testsuite/common/$(DEPDIR)/$(am__dirstamp)
940testsuite/common/bits-gen.$(OBJEXT): testsuite/common/$(am__dirstamp) \
941 testsuite/common/$(DEPDIR)/$(am__dirstamp)
942testsuite/common/bits32m0.$(OBJEXT): testsuite/common/$(am__dirstamp) \
943 testsuite/common/$(DEPDIR)/$(am__dirstamp)
944testsuite/common/bits32m31.$(OBJEXT): \
945 testsuite/common/$(am__dirstamp) \
946 testsuite/common/$(DEPDIR)/$(am__dirstamp)
947testsuite/common/bits64m0.$(OBJEXT): testsuite/common/$(am__dirstamp) \
948 testsuite/common/$(DEPDIR)/$(am__dirstamp)
949testsuite/common/bits64m63.$(OBJEXT): \
950 testsuite/common/$(am__dirstamp) \
951 testsuite/common/$(DEPDIR)/$(am__dirstamp)
952testsuite/common/fpu-tst.$(OBJEXT): testsuite/common/$(am__dirstamp) \
953 testsuite/common/$(DEPDIR)/$(am__dirstamp)
b6b1c790
MF
954
955mostlyclean-compile:
956 -rm -f *.$(OBJEXT)
5bea0c32 957 -rm -f common/*.$(OBJEXT)
b6b1c790 958 -rm -f igen/*.$(OBJEXT)
a389375f 959 -rm -f testsuite/common/*.$(OBJEXT)
b6b1c790
MF
960
961distclean-compile:
962 -rm -f *.tab.c
963
5bea0c32 964@AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/version.Po@am__quote@
b6b1c790
MF
965@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/filter.Po@am__quote@
966@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/filter_host.Po@am__quote@
967@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-engine.Po@am__quote@
968@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-icache.Po@am__quote@
969@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-idecode.Po@am__quote@
970@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-itable.Po@am__quote@
971@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-model.Po@am__quote@
972@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-semantics.Po@am__quote@
973@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen-support.Po@am__quote@
974@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/gen.Po@am__quote@
975@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/igen.Po@am__quote@
976@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-cache.Po@am__quote@
977@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-decode.Po@am__quote@
978@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/ld-insn.Po@am__quote@
979@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/lf.Po@am__quote@
980@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/misc.Po@am__quote@
981@AMDEP_TRUE@@am__include@ @am__quote@igen/$(DEPDIR)/table.Po@am__quote@
a389375f
MF
982@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/alu-tst.Po@am__quote@
983@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/bits-gen.Po@am__quote@
984@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/bits32m0.Po@am__quote@
985@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/bits32m31.Po@am__quote@
986@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/bits64m0.Po@am__quote@
987@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/bits64m63.Po@am__quote@
988@AMDEP_TRUE@@am__include@ @am__quote@testsuite/common/$(DEPDIR)/fpu-tst.Po@am__quote@
b6b1c790
MF
989
990.c.o:
991@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
992@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
993@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
994@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
995@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
996@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
997
998.c.obj:
999@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
1000@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
1001@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
1002@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1003@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1004@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
92bc001e
MF
1005install-pkgincludeHEADERS: $(pkginclude_HEADERS)
1006 @$(NORMAL_INSTALL)
1007 @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
1008 if test -n "$$list"; then \
1009 echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
1010 $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
1011 fi; \
1012 for p in $$list; do \
1013 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1014 echo "$$d$$p"; \
1015 done | $(am__base_list) | \
1016 while read files; do \
1017 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
1018 $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
1019 done
1020
1021uninstall-pkgincludeHEADERS:
1022 @$(NORMAL_UNINSTALL)
1023 @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
1024 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1025 dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
b6b1c790 1026
6bddc3e8
MF
1027# This directory's subdirectories are mostly independent; you can cd
1028# into them and run 'make' without going through this Makefile.
1029# To change the values of 'make' variables: instead of editing Makefiles,
1030# (1) if the variable is set in 'config.status', edit 'config.status'
1031# (which will cause the Makefiles to be regenerated when you run 'make');
1032# (2) otherwise, pass the desired values on the 'make' command line.
1033$(am__recursive_targets):
1034 @fail=; \
1035 if $(am__make_keepgoing); then \
1036 failcom='fail=yes'; \
1037 else \
1038 failcom='exit 1'; \
1039 fi; \
1040 dot_seen=no; \
1041 target=`echo $@ | sed s/-recursive//`; \
1042 case "$@" in \
1043 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1044 *) list='$(SUBDIRS)' ;; \
1045 esac; \
1046 for subdir in $$list; do \
1047 echo "Making $$target in $$subdir"; \
1048 if test "$$subdir" = "."; then \
1049 dot_seen=yes; \
1050 local_target="$$target-am"; \
1051 else \
1052 local_target="$$target"; \
1053 fi; \
1054 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1055 || eval $$failcom; \
1056 done; \
1057 if test "$$dot_seen" = "no"; then \
1058 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1059 fi; test -z "$$fail"
1060
1061ID: $(am__tagged_files)
1062 $(am__define_uniq_tagged_files); mkid -fID $$unique
1063tags: tags-recursive
1064TAGS: tags
1065
1066tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1067 set x; \
1068 here=`pwd`; \
1069 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1070 include_option=--etags-include; \
1071 empty_fix=.; \
1072 else \
1073 include_option=--include; \
1074 empty_fix=; \
1075 fi; \
1076 list='$(SUBDIRS)'; for subdir in $$list; do \
1077 if test "$$subdir" = .; then :; else \
1078 test ! -f $$subdir/TAGS || \
1079 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
1080 fi; \
1081 done; \
1082 $(am__define_uniq_tagged_files); \
1083 shift; \
1084 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1085 test -n "$$unique" || unique=$$empty_fix; \
1086 if test $$# -gt 0; then \
1087 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1088 "$$@" $$unique; \
1089 else \
1090 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1091 $$unique; \
1092 fi; \
1093 fi
1094ctags: ctags-recursive
1095
1096CTAGS: ctags
1097ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1098 $(am__define_uniq_tagged_files); \
1099 test -z "$(CTAGS_ARGS)$$unique" \
1100 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1101 $$unique
1102
1103GTAGS:
1104 here=`$(am__cd) $(top_builddir) && pwd` \
1105 && $(am__cd) $(top_srcdir) \
1106 && gtags -i $(GTAGS_ARGS) "$$here"
1107cscope: cscope.files
1108 test ! -s cscope.files \
1109 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
1110clean-cscope:
1111 -rm -f cscope.files
1112cscope.files: clean-cscope cscopelist
1113cscopelist: cscopelist-recursive
1114
1115cscopelist-am: $(am__tagged_files)
1116 list='$(am__tagged_files)'; \
1117 case "$(srcdir)" in \
1118 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1119 *) sdir=$(subdir)/$(srcdir) ;; \
1120 esac; \
1121 for i in $$list; do \
1122 if test -f "$$i"; then \
1123 echo "$(subdir)/$$i"; \
1124 else \
1125 echo "$$sdir/$$i"; \
1126 fi; \
1127 done >> $(top_builddir)/cscope.files
1128
1129distclean-tags:
1130 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1131 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
6c57b87f
MF
1132site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
1133 @echo 'Making a new site.exp file ...'
1134 @echo '## these variables are automatically generated by make ##' >site.tmp
1135 @echo '# Do not edit here. If you wish to override these values' >>site.tmp
1136 @echo '# edit the last section' >>site.tmp
1137 @echo 'set srcdir "$(srcdir)"' >>site.tmp
1138 @echo "set objdir `pwd`" >>site.tmp
1139 @echo 'set build_alias "$(build_alias)"' >>site.tmp
1140 @echo 'set build_triplet $(build_triplet)' >>site.tmp
1141 @echo 'set host_alias "$(host_alias)"' >>site.tmp
1142 @echo 'set host_triplet $(host_triplet)' >>site.tmp
1143 @echo 'set target_alias "$(target_alias)"' >>site.tmp
1144 @echo 'set target_triplet $(target_triplet)' >>site.tmp
1145 @list='$(EXTRA_DEJAGNU_SITE_CONFIG)'; for f in $$list; do \
1146 echo "## Begin content included from file $$f. Do not modify. ##" \
1147 && cat `test -f "$$f" || echo '$(srcdir)/'`$$f \
1148 && echo "## End content included from file $$f. ##" \
1149 || exit 1; \
1150 done >> site.tmp
1151 @echo "## End of auto-generated content; you can edit from here. ##" >> site.tmp
1152 @if test -f site.exp; then \
1153 sed -e '1,/^## End of auto-generated content.*##/d' site.exp >> site.tmp; \
1154 fi
1155 @-rm -f site.bak
1156 @test ! -f site.exp || mv site.exp site.bak
1157 @mv site.tmp site.exp
1158
1159distclean-DEJAGNU:
1160 -rm -f site.exp site.bak
1161 -l='$(DEJATOOL)'; for tool in $$l; do \
1162 rm -f $$tool.sum $$tool.log; \
1163 done
a389375f
MF
1164
1165# Recover from deleted '.trs' file; this should ensure that
1166# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
1167# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
1168# to avoid problems with "make -n".
1169.log.trs:
1170 rm -f $< $@
1171 $(MAKE) $(AM_MAKEFLAGS) $<
1172
1173# Leading 'am--fnord' is there to ensure the list of targets does not
1174# expand to empty, as could happen e.g. with make check TESTS=''.
1175am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
1176am--force-recheck:
1177 @:
1178
1179$(TEST_SUITE_LOG): $(TEST_LOGS)
1180 @$(am__set_TESTS_bases); \
1181 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
1182 redo_bases=`for i in $$bases; do \
1183 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
1184 done`; \
1185 if test -n "$$redo_bases"; then \
1186 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
1187 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
1188 if $(am__make_dryrun); then :; else \
1189 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
1190 fi; \
1191 fi; \
1192 if test -n "$$am__remaking_logs"; then \
1193 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
1194 "recursion detected" >&2; \
1195 elif test -n "$$redo_logs"; then \
1196 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
1197 fi; \
1198 if $(am__make_dryrun); then :; else \
1199 st=0; \
1200 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
1201 for i in $$redo_bases; do \
1202 test -f $$i.trs && test -r $$i.trs \
1203 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
1204 test -f $$i.log && test -r $$i.log \
1205 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
1206 done; \
1207 test $$st -eq 0 || exit 1; \
1208 fi
1209 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
1210 ws='[ ]'; \
1211 results=`for b in $$bases; do echo $$b.trs; done`; \
1212 test -n "$$results" || results=/dev/null; \
1213 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
1214 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
1215 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
1216 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
1217 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
1218 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
1219 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
1220 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
1221 success=true; \
1222 else \
1223 success=false; \
1224 fi; \
1225 br='==================='; br=$$br$$br$$br$$br; \
1226 result_count () \
1227 { \
1228 if test x"$$1" = x"--maybe-color"; then \
1229 maybe_colorize=yes; \
1230 elif test x"$$1" = x"--no-color"; then \
1231 maybe_colorize=no; \
1232 else \
1233 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
1234 fi; \
1235 shift; \
1236 desc=$$1 count=$$2; \
1237 if test $$maybe_colorize = yes && test $$count -gt 0; then \
1238 color_start=$$3 color_end=$$std; \
1239 else \
1240 color_start= color_end=; \
1241 fi; \
1242 echo "$${color_start}# $$desc $$count$${color_end}"; \
1243 }; \
1244 create_testsuite_report () \
1245 { \
1246 result_count $$1 "TOTAL:" $$all "$$brg"; \
1247 result_count $$1 "PASS: " $$pass "$$grn"; \
1248 result_count $$1 "SKIP: " $$skip "$$blu"; \
1249 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
1250 result_count $$1 "FAIL: " $$fail "$$red"; \
1251 result_count $$1 "XPASS:" $$xpass "$$red"; \
1252 result_count $$1 "ERROR:" $$error "$$mgn"; \
1253 }; \
1254 { \
1255 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
1256 $(am__rst_title); \
1257 create_testsuite_report --no-color; \
1258 echo; \
1259 echo ".. contents:: :depth: 2"; \
1260 echo; \
1261 for b in $$bases; do echo $$b; done \
1262 | $(am__create_global_log); \
1263 } >$(TEST_SUITE_LOG).tmp || exit 1; \
1264 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
1265 if $$success; then \
1266 col="$$grn"; \
1267 else \
1268 col="$$red"; \
1269 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
1270 fi; \
1271 echo "$${col}$$br$${std}"; \
1272 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
1273 echo "$${col}$$br$${std}"; \
1274 create_testsuite_report --maybe-color; \
1275 echo "$$col$$br$$std"; \
1276 if $$success; then :; else \
1277 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
1278 if test -n "$(PACKAGE_BUGREPORT)"; then \
1279 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
1280 fi; \
1281 echo "$$col$$br$$std"; \
1282 fi; \
1283 $$success || exit 1
1284
1285check-TESTS:
1286 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
1287 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
1288 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1289 @set +e; $(am__set_TESTS_bases); \
1290 log_list=`for i in $$bases; do echo $$i.log; done`; \
1291 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
1292 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
1293 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
1294 exit $$?;
1295recheck: all $(check_PROGRAMS)
1296 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1297 @set +e; $(am__set_TESTS_bases); \
1298 bases=`for i in $$bases; do echo $$i; done \
1299 | $(am__list_recheck_tests)` || exit 1; \
1300 log_list=`for i in $$bases; do echo $$i.log; done`; \
1301 log_list=`echo $$log_list`; \
1302 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
1303 am__force_recheck=am--force-recheck \
1304 TEST_LOGS="$$log_list"; \
1305 exit $$?
1306testsuite/common/bits32m0.log: testsuite/common/bits32m0$(EXEEXT)
1307 @p='testsuite/common/bits32m0$(EXEEXT)'; \
1308 b='testsuite/common/bits32m0'; \
1309 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1310 --log-file $$b.log --trs-file $$b.trs \
1311 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1312 "$$tst" $(AM_TESTS_FD_REDIRECT)
1313testsuite/common/bits32m31.log: testsuite/common/bits32m31$(EXEEXT)
1314 @p='testsuite/common/bits32m31$(EXEEXT)'; \
1315 b='testsuite/common/bits32m31'; \
1316 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1317 --log-file $$b.log --trs-file $$b.trs \
1318 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1319 "$$tst" $(AM_TESTS_FD_REDIRECT)
1320testsuite/common/bits64m0.log: testsuite/common/bits64m0$(EXEEXT)
1321 @p='testsuite/common/bits64m0$(EXEEXT)'; \
1322 b='testsuite/common/bits64m0'; \
1323 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1324 --log-file $$b.log --trs-file $$b.trs \
1325 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1326 "$$tst" $(AM_TESTS_FD_REDIRECT)
1327testsuite/common/bits64m63.log: testsuite/common/bits64m63$(EXEEXT)
1328 @p='testsuite/common/bits64m63$(EXEEXT)'; \
1329 b='testsuite/common/bits64m63'; \
1330 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1331 --log-file $$b.log --trs-file $$b.trs \
1332 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1333 "$$tst" $(AM_TESTS_FD_REDIRECT)
1334testsuite/common/alu-tst.log: testsuite/common/alu-tst$(EXEEXT)
1335 @p='testsuite/common/alu-tst$(EXEEXT)'; \
1336 b='testsuite/common/alu-tst'; \
1337 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1338 --log-file $$b.log --trs-file $$b.trs \
1339 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1340 "$$tst" $(AM_TESTS_FD_REDIRECT)
1341.test.log:
1342 @p='$<'; \
1343 $(am__set_b); \
1344 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1345 --log-file $$b.log --trs-file $$b.trs \
1346 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1347 "$$tst" $(AM_TESTS_FD_REDIRECT)
1348@am__EXEEXT_TRUE@.test$(EXEEXT).log:
1349@am__EXEEXT_TRUE@ @p='$<'; \
1350@am__EXEEXT_TRUE@ $(am__set_b); \
1351@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
1352@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
1353@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
1354@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
6bddc3e8 1355check-am: all-am
a389375f
MF
1356 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
1357 $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check-TESTS
6bddc3e8 1358check: check-recursive
b15c5d7a 1359all-am: Makefile $(LIBRARIES) $(HEADERS) config.h
6bddc3e8
MF
1360installdirs: installdirs-recursive
1361installdirs-am:
92bc001e
MF
1362 for dir in "$(DESTDIR)$(pkgincludedir)"; do \
1363 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1364 done
6bddc3e8
MF
1365install: install-recursive
1366install-exec: install-exec-recursive
1367install-data: install-data-recursive
1368uninstall: uninstall-recursive
1369
1370install-am: all-am
1371 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1372
1373installcheck: installcheck-recursive
1374install-strip:
1375 if test -z '$(STRIP)'; then \
1376 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1377 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1378 install; \
1379 else \
1380 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1381 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1382 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1383 fi
1384mostlyclean-generic:
1385 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
a389375f
MF
1386 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1387 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1388 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
c906108c 1389
6bddc3e8 1390clean-generic:
a389375f 1391 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
c906108c 1392
6bddc3e8
MF
1393distclean-generic:
1394 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1395 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
5bea0c32
MF
1396 -rm -f common/$(DEPDIR)/$(am__dirstamp)
1397 -rm -f common/$(am__dirstamp)
b6b1c790
MF
1398 -rm -f igen/$(DEPDIR)/$(am__dirstamp)
1399 -rm -f igen/$(am__dirstamp)
a389375f
MF
1400 -rm -f testsuite/common/$(DEPDIR)/$(am__dirstamp)
1401 -rm -f testsuite/common/$(am__dirstamp)
1402 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
c906108c 1403
6bddc3e8
MF
1404maintainer-clean-generic:
1405 @echo "This command is intended for maintainers to use"
1406 @echo "it deletes files that may require special tools to rebuild."
1407clean: clean-recursive
c906108c 1408
a389375f
MF
1409clean-am: clean-checkPROGRAMS clean-generic clean-noinstLIBRARIES \
1410 mostlyclean-am
c906108c 1411
6bddc3e8
MF
1412distclean: distclean-recursive
1413 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
5bea0c32 1414 -rm -rf common/$(DEPDIR) igen/$(DEPDIR) testsuite/common/$(DEPDIR)
6bddc3e8 1415 -rm -f Makefile
b6b1c790 1416distclean-am: clean-am distclean-DEJAGNU distclean-compile \
b15c5d7a 1417 distclean-generic distclean-hdr distclean-tags
c906108c 1418
6bddc3e8 1419dvi: dvi-recursive
c906108c 1420
6bddc3e8 1421dvi-am:
c906108c 1422
6bddc3e8 1423html: html-recursive
c906108c 1424
6bddc3e8 1425html-am:
c906108c 1426
6bddc3e8
MF
1427info: info-recursive
1428
1429info-am:
1430
92bc001e 1431install-data-am: install-pkgincludeHEADERS
6bddc3e8
MF
1432
1433install-dvi: install-dvi-recursive
1434
1435install-dvi-am:
1436
1437install-exec-am:
1438
1439install-html: install-html-recursive
1440
1441install-html-am:
1442
1443install-info: install-info-recursive
1444
1445install-info-am:
1446
1447install-man:
1448
1449install-pdf: install-pdf-recursive
1450
1451install-pdf-am:
1452
1453install-ps: install-ps-recursive
1454
1455install-ps-am:
1456
1457installcheck-am:
1458
1459maintainer-clean: maintainer-clean-recursive
1460 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1461 -rm -rf $(top_srcdir)/autom4te.cache
5bea0c32 1462 -rm -rf common/$(DEPDIR) igen/$(DEPDIR) testsuite/common/$(DEPDIR)
6bddc3e8
MF
1463 -rm -f Makefile
1464maintainer-clean-am: distclean-am maintainer-clean-generic
1465
1466mostlyclean: mostlyclean-recursive
1467
b6b1c790 1468mostlyclean-am: mostlyclean-compile mostlyclean-generic
6bddc3e8
MF
1469
1470pdf: pdf-recursive
1471
1472pdf-am:
1473
1474ps: ps-recursive
1475
1476ps-am:
1477
92bc001e 1478uninstall-am: uninstall-pkgincludeHEADERS
6bddc3e8 1479
b15c5d7a 1480.MAKE: $(am__recursive_targets) all check-am install-am install-strip
6bddc3e8
MF
1481
1482.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
a389375f
MF
1483 am--refresh check check-DEJAGNU check-TESTS check-am clean \
1484 clean-checkPROGRAMS clean-cscope clean-generic \
1485 clean-noinstLIBRARIES cscope cscopelist-am ctags ctags-am \
1486 distclean distclean-DEJAGNU distclean-compile \
b15c5d7a
MF
1487 distclean-generic distclean-hdr distclean-tags dvi dvi-am html \
1488 html-am info info-am install install-am install-data \
1489 install-data-am install-dvi install-dvi-am install-exec \
1490 install-exec-am install-html install-html-am install-info \
1491 install-info-am install-man install-pdf install-pdf-am \
92bc001e
MF
1492 install-pkgincludeHEADERS install-ps install-ps-am \
1493 install-strip installcheck installcheck-am installdirs \
1494 installdirs-am maintainer-clean maintainer-clean-generic \
1495 mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \
1496 ps ps-am recheck tags tags-am uninstall uninstall-am \
1497 uninstall-pkgincludeHEADERS
6bddc3e8
MF
1498
1499.PRECIOUS: Makefile
c906108c 1500
c906108c 1501
5e25901f
MF
1502# Generate nltvals.def for newlib/libgloss using devo and build tree.
1503# This file is shipped with distributions so we build in the source dir.
1504# Use `make nltvals' to rebuild.
1505# Note: If gdb releases begin to contain target header files (not a good idea,
1506# but if they did ...), nltvals.def coud be generated at build time.
1507# An alternative is to slurp in the tables at runtime.
1508.PHONY: nltvals
1509nltvals:
6bddc3e8 1510 $(abs_srcdir)/common/gennltvals.py --cpp "$(CPP)" --output nltvals.def --srcroot $(srcroot)
5e25901f
MF
1511 $(SHELL) $(srcroot)/move-if-change nltvals.def $(abs_srcdir)/common/nltvals.def
1512
5bea0c32
MF
1513common/version.c: $(srcroot)/gdb/version.in $(srcroot)/bfd/version.h $(srcdir)/common/create-version.sh
1514 $(SHELL) $(srcdir)/common/create-version.sh $(srcroot)/gdb $@.tmp
1515 $(SHELL) $(srcroot)/move-if-change $@.tmp $@
1516 touch $@
b6b1c790
MF
1517
1518# Alias for developers.
1519@SIM_ENABLE_IGEN_TRUE@igen: igen/igen$(EXEEXT)
1520
aa0fca16
MF
1521# These rules are copied from automake, but tweaked to use FOR_BUILD variables.
1522@SIM_ENABLE_IGEN_TRUE@igen/libigen.a: $(igen_libigen_a_OBJECTS) $(igen_libigen_a_DEPENDENCIES) $(EXTRA_igen_libigen_a_DEPENDENCIES) igen/$(am__dirstamp)
1523@SIM_ENABLE_IGEN_TRUE@ $(AM_V_at)-rm -f $@
1524@SIM_ENABLE_IGEN_TRUE@ $(AM_V_AR)$(AR_FOR_BUILD) $(ARFLAGS) $@ $(igen_libigen_a_OBJECTS) $(igen_libigen_a_LIBADD)
1525@SIM_ENABLE_IGEN_TRUE@ $(AM_V_at)$(RANLIB_FOR_BUILD) $@
1526
b6b1c790
MF
1527@SIM_ENABLE_IGEN_TRUE@igen/igen$(EXEEXT): $(igen_igen_OBJECTS) $(igen_igen_DEPENDENCIES) igen/$(am__dirstamp)
1528@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CCLD)$(LINK_FOR_BUILD) $(igen_igen_OBJECTS) $(igen_igen_LDADD)
1529
1530# igen is a build-time only tool. Override the default rules for it.
1531@SIM_ENABLE_IGEN_TRUE@igen/%.o: igen/%.c
1532@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CC)$(COMPILE_FOR_BUILD) -c $< -o $@
1533
1534# Build some of the files in standalone mode for developers of igen itself.
1535@SIM_ENABLE_IGEN_TRUE@igen/%-main.o: igen/%.c
1536@SIM_ENABLE_IGEN_TRUE@ $(AM_V_CC)$(COMPILE_FOR_BUILD) -DMAIN -c $< -o $@
1537
6c57b87f
MF
1538site-srcdir.exp: Makefile
1539 echo "set srcdir \"$(srcdir)/testsuite\"" > $@
1540
1541check-DEJAGNU: site.exp
1542 LC_ALL=C; export LC_ALL; \
1543 EXPECT=${EXPECT} ; export EXPECT ; \
1544 runtest=$(RUNTEST); \
1545 if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
1546 $$runtest $(RUNTESTFLAGS); \
1547 else echo "WARNING: could not find \`runtest'" 1>&2; :;\
1548 fi
1549
a389375f
MF
1550# These tests are build-time only tools. Override the default rules for them.
1551testsuite/common/%.o: testsuite/common/%.c
1552 $(AM_V_CC)$(COMPILE_FOR_BUILD) $(testsuite_common_CPPFLAGS) -c $< -o $@
1553
1554testsuite/common/alu-tst$(EXEEXT): $(testsuite_common_alu_tst_OBJECTS) $(testsuite_common_alu_tst_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1555 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_alu_tst_OBJECTS) $(testsuite_common_alu_tst_LDADD)
1556
1557testsuite/common/fpu-tst$(EXEEXT): $(testsuite_common_fpu_tst_OBJECTS) $(testsuite_common_fpu_tst_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1558 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_fpu_tst_OBJECTS) $(testsuite_common_fpu_tst_LDADD)
1559
1560testsuite/common/bits-gen$(EXEEXT): $(testsuite_common_bits_gen_OBJECTS) $(testsuite_common_bits_gen_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1561 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits_gen_OBJECTS) $(testsuite_common_bits_gen_LDADD)
1562
1563testsuite/common/bits32m0$(EXEEXT): $(testsuite_common_bits32m0_OBJECTS) $(testsuite_common_bits32m0_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1564 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits32m0_OBJECTS) $(testsuite_common_bits32m0_LDADD)
1565
1566testsuite/common/bits32m0.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
1567 $< 32 0 big > $@.tmp
1568 cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
1569 mv $@.tmp $@
1570
1571testsuite/common/bits32m31$(EXEEXT): $(testsuite_common_bits32m31_OBJECTS) $(testsuite_common_bits32m31_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1572 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits32m31_OBJECTS) $(testsuite_common_bits32m31_LDADD)
1573
1574testsuite/common/bits32m31.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
1575 $< 32 31 little > $@.tmp
1576 cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
1577 mv $@.tmp $@
1578
1579testsuite/common/bits64m0$(EXEEXT): $(testsuite_common_bits64m0_OBJECTS) $(testsuite_common_bits64m0_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1580 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits64m0_OBJECTS) $(testsuite_common_bits64m0_LDADD)
1581
1582testsuite/common/bits64m0.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
1583 $< 64 0 big > $@.tmp
1584 cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
1585 mv $@.tmp $@
1586
1587testsuite/common/bits64m63$(EXEEXT): $(testsuite_common_bits64m63_OBJECTS) $(testsuite_common_bits64m63_DEPENDENCIES) testsuite/common/$(am__dirstamp)
1588 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(testsuite_common_bits64m63_OBJECTS) $(testsuite_common_bits64m63_LDADD)
1589
1590testsuite/common/bits64m63.c: testsuite/common/bits-gen testsuite/common/bits-tst.c
1591 $< 64 63 little > $@.tmp
1592 cat $(srcdir)/testsuite/common/bits-tst.c >> $@.tmp
1593 mv $@.tmp $@
1594
5bea0c32
MF
1595all-recursive: $(SIM_ALL_RECURSIVE_DEPS)
1596
6bddc3e8
MF
1597# Tell versions [3.59,3.63) of GNU make to not export all variables.
1598# Otherwise a system limit (for SysV at least) may be exceeded.
1599.NOEXPORT: