]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/testsuite/Makefile.in
linux.h: Add a comment to mark macros that are being overriden in config/k*bsd-gnu.h.
[thirdparty/gcc.git] / libiberty / testsuite / Makefile.in
CommitLineData
7c72138a
TT
1#
2# Makefile
3fd9d606 3# Copyright (C) 1999, 2002
7c72138a
TT
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,
0cbe2a68
KC
19# write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20# Boston, MA 02110-1301, USA.
7c72138a
TT
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
a584cf65 45# CHECK is set to "really_check" or the empty string by configure.
7c72138a
TT
46check: @CHECK@
47
974c2c56 48really-check: check-cplus-dem check-pexecute check-expandargv
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
a584cf65
ILT
54# Check the pexecute code.
55check-pexecute: test-pexecute
56 ./test-pexecute
57
974c2c56
CD
58# Check the expandargv functionality
59check-expandargv: test-expandargv
60 ./test-expandargv
61
7c72138a 62TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
a9b571f2 63test-demangle: $(srcdir)/test-demangle.c ../libiberty.a
3fd9d606
ZW
64 $(TEST_COMPILE) -o test-demangle \
65 $(srcdir)/test-demangle.c ../libiberty.a
7c72138a 66
a584cf65
ILT
67test-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a
68 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \
69 $(srcdir)/test-pexecute.c ../libiberty.a
974c2c56
CD
70
71test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a
72 $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \
73 $(srcdir)/test-expandargv.c ../libiberty.a
a584cf65 74
7c72138a
TT
75# Standard (either GNU or Cygnus) rules we don't use.
76info install-info clean-info dvi install etags tags installcheck:
77
78# The standard clean rules.
79mostlyclean:
3fd9d606 80 rm -f test-demangle
974c2c56
CD
81 rm -f test-pexecute
82 rm -f test-expandargv
7c72138a
TT
83clean: mostlyclean
84distclean: clean
85 rm -f Makefile
86maintainer-clean realclean: distclean
87
7c72138a
TT
88Makefile: $(srcdir)/Makefile.in ../config.status
89 CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
90 cd .. && $(SHELL) ./config.status