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