Update release-README after completing the 2.43 release.
[binutils-gdb.git] / sim / testsuite / common / local.mk
blob935ac78a690afa8a920e371862ff8ff10e4ebb63
1 ## Copyright (C) 1997-2024 Free Software Foundation, Inc.
2 ##
3 ## This program is free software; you can redistribute it and/or modify
4 ## it under the terms of the GNU General Public License as published by
5 ## the Free Software Foundation; either version 3 of the License, or
6 ## (at your option) any later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
16 EXTRA_PROGRAMS += %D%/bits-gen
18 # We don't build this normally as it relies on the Berkeley SoftFloat/TestFloat
19 # projects being installed/available first.
20 EXTRA_PROGRAMS += %D%/fpu-tst
22 TESTS = \
23 %D%/bits32m0 \
24 %D%/bits32m31 \
25 %D%/bits64m0 \
26 %D%/bits64m63 \
27 %D%/alu-tst
28 check_PROGRAMS += $(TESTS)
30 %C%_CPPFLAGS = \
31 -I$(srcdir)/common \
32 -I$(srcroot)/include \
33 -I../bfd
35 # These tests are build-time only tools. Override the default rules for them.
36 %D%/%.o: %D%/%.c
37 $(AM_V_CC)$(COMPILE_FOR_BUILD) $(%C%_CPPFLAGS) -c $< -o $@
39 %D%/alu-tst$(EXEEXT): $(%C%_alu_tst_OBJECTS) $(%C%_alu_tst_DEPENDENCIES) %D%/$(am__dirstamp)
40 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_alu_tst_OBJECTS) $(%C%_alu_tst_LDADD)
42 %D%/fpu-tst$(EXEEXT): $(%C%_fpu_tst_OBJECTS) $(%C%_fpu_tst_DEPENDENCIES) %D%/$(am__dirstamp)
43 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_fpu_tst_OBJECTS) $(%C%_fpu_tst_LDADD)
45 %D%/bits-gen$(EXEEXT): $(%C%_bits_gen_OBJECTS) $(%C%_bits_gen_DEPENDENCIES) %D%/$(am__dirstamp)
46 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits_gen_OBJECTS) $(%C%_bits_gen_LDADD)
48 %D%/bits32m0$(EXEEXT): $(%C%_bits32m0_OBJECTS) $(%C%_bits32m0_DEPENDENCIES) %D%/$(am__dirstamp)
49 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits32m0_OBJECTS) $(%C%_bits32m0_LDADD)
51 %D%/bits32m0.c: %D%/bits-gen$(EXEEXT) %D%/bits-tst.c
52 $(AM_V_GEN)$< 32 0 big > $@.tmp
53 $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
54 $(AM_V_at)mv $@.tmp $@
56 %D%/bits32m31$(EXEEXT): $(%C%_bits32m31_OBJECTS) $(%C%_bits32m31_DEPENDENCIES) %D%/$(am__dirstamp)
57 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits32m31_OBJECTS) $(%C%_bits32m31_LDADD)
59 %D%/bits32m31.c: %D%/bits-gen$(EXEEXT) %D%/bits-tst.c
60 $(AM_V_GEN)$< 32 31 little > $@.tmp
61 $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
62 $(AM_V_at)mv $@.tmp $@
64 %D%/bits64m0$(EXEEXT): $(%C%_bits64m0_OBJECTS) $(%C%_bits64m0_DEPENDENCIES) %D%/$(am__dirstamp)
65 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits64m0_OBJECTS) $(%C%_bits64m0_LDADD)
67 %D%/bits64m0.c: %D%/bits-gen$(EXEEXT) %D%/bits-tst.c
68 $(AM_V_GEN)$< 64 0 big > $@.tmp
69 $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
70 $(AM_V_at)mv $@.tmp $@
72 %D%/bits64m63$(EXEEXT): $(%C%_bits64m63_OBJECTS) $(%C%_bits64m63_DEPENDENCIES) %D%/$(am__dirstamp)
73 $(AM_V_CCLD)$(LINK_FOR_BUILD) $(%C%_bits64m63_OBJECTS) $(%C%_bits64m63_LDADD)
75 %D%/bits64m63.c: %D%/bits-gen$(EXEEXT) %D%/bits-tst.c
76 $(AM_V_GEN)$< 64 63 little > $@.tmp
77 $(AM_V_at)cat $(srcdir)/%D%/bits-tst.c >> $@.tmp
78 $(AM_V_at)mv $@.tmp $@
80 CLEANFILES += \
81 %D%/bits-gen \
82 %D%/bits32m0.c \
83 %D%/bits32m31.c \
84 %D%/bits64m0.c \
85 %D%/bits64m63.c