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