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