]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/testsuite/Makefile.in
Update copyright years.
[thirdparty/gcc.git] / libiberty / testsuite / Makefile.in
CommitLineData
7c72138a
TT
1#
2# Makefile
a945c346 3# Copyright (C) 1999-2024 Free Software Foundation, Inc.
7c72138a
TT
4#
5# This file is part of the libiberty library.
6# Libiberty is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Library General Public
8# License as published by the Free Software Foundation; either
9# version 2 of the License, or (at your option) any later version.
10#
11# Libiberty is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# Library General Public License for more details.
15#
16# You should have received a copy of the GNU Library General Public
17# License along with libiberty; see the file COPYING.LIB. If not,
0cbe2a68
KC
18# write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19# Boston, MA 02110-1301, USA.
7c72138a
TT
20#
21
22# This file was written by Tom Tromey <tromey@cygnus.com>.
23
24#
25# Makefile for libiberty/testsuite directory
26#
27
28srcdir = @srcdir@
29VPATH = @srcdir@
30
31SHELL = @SHELL@
32
33CC = @CC@
34CFLAGS = @CFLAGS@
77019397 35LIBCFLAGS = $(CFLAGS) $(LDFLAGS)
7c72138a
TT
36
37# Multilib support variables.
38MULTISRCTOP =
39
40INCDIR=$(srcdir)/../$(MULTISRCTOP)../include
41
42all:
43
a584cf65 44# CHECK is set to "really_check" or the empty string by configure.
7c72138a
TT
45check: @CHECK@
46
10d48c59
DT
47really-check: check-cplus-dem check-d-demangle check-rust-demangle \
48 check-pexecute check-expandargv check-strtol
a584cf65 49
7c72138a 50# Run some tests of the demangler.
3fd9d606
ZW
51check-cplus-dem: test-demangle $(srcdir)/demangle-expected
52 ./test-demangle < $(srcdir)/demangle-expected
7c72138a 53
43b1b9ed
IB
54check-d-demangle: test-demangle $(srcdir)/d-demangle-expected
55 ./test-demangle < $(srcdir)/d-demangle-expected
56
10d48c59
DT
57check-rust-demangle: test-demangle $(srcdir)/rust-demangle-expected
58 ./test-demangle < $(srcdir)/rust-demangle-expected
59
a584cf65
ILT
60# Check the pexecute code.
61check-pexecute: test-pexecute
62 ./test-pexecute
63
974c2c56
CD
64# Check the expandargv functionality
65check-expandargv: test-expandargv
66 ./test-expandargv
67
ea41822a
YG
68# Check the strtol functionality
69check-strtol: test-strtol
70 ./test-strtol
71
635f4800
GB
72# Run the demangler fuzzer
73fuzz-demangler: demangler-fuzzer
74 ./demangler-fuzzer
75
7c72138a 76TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
a9b571f2 77test-demangle: $(srcdir)/test-demangle.c ../libiberty.a
3fd9d606
ZW
78 $(TEST_COMPILE) -o test-demangle \
79 $(srcdir)/test-demangle.c ../libiberty.a
7c72138a 80
a584cf65
ILT
81test-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a
82 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \
83 $(srcdir)/test-pexecute.c ../libiberty.a
5ff3a208 84
974c2c56
CD
85test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a
86 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \
87 $(srcdir)/test-expandargv.c ../libiberty.a
a584cf65 88
ea41822a
YG
89test-strtol: $(srcdir)/test-strtol.c ../libiberty.a
90 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-strtol \
91 $(srcdir)/test-strtol.c ../libiberty.a
92
635f4800
GB
93demangler-fuzzer: $(srcdir)/demangler-fuzzer.c ../libiberty.a
94 $(TEST_COMPILE) -o demangler-fuzzer \
95 $(srcdir)/demangler-fuzzer.c ../libiberty.a
96
7c72138a 97# Standard (either GNU or Cygnus) rules we don't use.
267686a7
BM
98html install-html info install-info clean-info dvi pdf install-pdf \
99install etags tags installcheck:
7c72138a
TT
100
101# The standard clean rules.
102mostlyclean:
3fd9d606 103 rm -f test-demangle
974c2c56
CD
104 rm -f test-pexecute
105 rm -f test-expandargv
ea41822a 106 rm -f test-strtol
635f4800 107 rm -f demangler-fuzzer
5ff3a208 108 rm -f core
7c72138a
TT
109clean: mostlyclean
110distclean: clean
111 rm -f Makefile
112maintainer-clean realclean: distclean
113
7c72138a
TT
114Makefile: $(srcdir)/Makefile.in ../config.status
115 CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
116 cd .. && $(SHELL) ./config.status