xcoffread.c (process_linenos): Delete unnecessary code.
[deliverable/binutils-gdb.git] / libiberty / testsuite / Makefile.in
CommitLineData
e2eaf477
ILT
1#
2# Makefile
545c9aee 3# Copyright (C) 1999, 2002, 2006
e2eaf477
ILT
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,
a9479c3f
KC
19# write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20# Boston, MA 02110-1301, USA.
e2eaf477
ILT
21#
22
23# This file was written by Tom Tromey <tromey@cygnus.com>.
24
25#
26# Makefile for libiberty/testsuite directory
27#
28
29srcdir = @srcdir@
30VPATH = @srcdir@
31
32SHELL = @SHELL@
33
34CC = @CC@
35CFLAGS = @CFLAGS@
36LIBCFLAGS = $(CFLAGS)
37
38# Multilib support variables.
39MULTISRCTOP =
40
41INCDIR=$(srcdir)/../$(MULTISRCTOP)../include
42
43all:
44
b109e79a 45# CHECK is set to "really_check" or the empty string by configure.
e2eaf477
ILT
46check: @CHECK@
47
b55f9678 48really-check: check-cplus-dem check-d-demangle check-pexecute check-expandargv
b109e79a 49
e2eaf477 50# Run some tests of the demangler.
a54ba43f
DD
51check-cplus-dem: test-demangle $(srcdir)/demangle-expected
52 ./test-demangle < $(srcdir)/demangle-expected
e2eaf477 53
b55f9678
IB
54check-d-demangle: test-demangle $(srcdir)/d-demangle-expected
55 ./test-demangle < $(srcdir)/d-demangle-expected
56
b109e79a
ILT
57# Check the pexecute code.
58check-pexecute: test-pexecute
59 ./test-pexecute
60
67d78caa
DD
61# Check the expandargv functionality
62check-expandargv: test-expandargv
63 ./test-expandargv
64
b55f9678
IB
65# Run the demangler fuzzer
66fuzz-demangler: demangler-fuzzer
67 ./demangler-fuzzer
68
e2eaf477 69TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
5659daa1 70test-demangle: $(srcdir)/test-demangle.c ../libiberty.a
a54ba43f
DD
71 $(TEST_COMPILE) -o test-demangle \
72 $(srcdir)/test-demangle.c ../libiberty.a
e2eaf477 73
b109e79a
ILT
74test-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a
75 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \
76 $(srcdir)/test-pexecute.c ../libiberty.a
610f4894 77
67d78caa
DD
78test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a
79 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \
80 $(srcdir)/test-expandargv.c ../libiberty.a
b109e79a 81
b55f9678
IB
82demangler-fuzzer: $(srcdir)/demangler-fuzzer.c ../libiberty.a
83 $(TEST_COMPILE) -o demangler-fuzzer \
84 $(srcdir)/demangler-fuzzer.c ../libiberty.a
85
e2eaf477 86# Standard (either GNU or Cygnus) rules we don't use.
d7831e7c
DD
87html install-html info install-info clean-info dvi pdf install-pdf \
88install etags tags installcheck:
e2eaf477
ILT
89
90# The standard clean rules.
91mostlyclean:
a54ba43f 92 rm -f test-demangle
67d78caa
DD
93 rm -f test-pexecute
94 rm -f test-expandargv
b55f9678 95 rm -f demangler-fuzzer
610f4894 96 rm -f core
e2eaf477
ILT
97clean: mostlyclean
98distclean: clean
99 rm -f Makefile
100maintainer-clean realclean: distclean
101
e2eaf477
ILT
102Makefile: $(srcdir)/Makefile.in ../config.status
103 CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
104 cd .. && $(SHELL) ./config.status
This page took 0.558493 seconds and 4 git commands to generate.