]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/testsuite/Makefile.in
parse.y (fold_constant_for_init): If a VAR_DECL, convert numerical constant to the...
[thirdparty/gcc.git] / libiberty / testsuite / Makefile.in
CommitLineData
7c72138a
TT
1#
2# Makefile
3# Copyright (C) 1999
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., 59 Temple Place - Suite 330,
20# Boston, MA 02111-1307, USA.
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
45check: @CHECK@
46
47# Run some tests of the demangler.
48check-cplus-dem: test-filter $(srcdir)/demangle-expected
49 $(SHELL) $(srcdir)/regress-demangle $(srcdir)/demangle-expected
50
51# Note that we just hard-code prepends_underscore to 0. This doesn't
52# matter since any particular test can override the default if need
53# be.
54TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
55test-filter: $(srcdir)/../cplus-dem.c
56 echo 'int prepends_underscore = 0;' > test-us.c
57 $(TEST_COMPILE) -o test-filter -DMAIN -DVERSION='"none"' @DEFS@ \
58 $(srcdir)/../cplus-dem.c test-us.c -L.. -liberty
59
60
61# Standard (either GNU or Cygnus) rules we don't use.
62info install-info clean-info dvi install etags tags installcheck:
63
64# The standard clean rules.
65mostlyclean:
66 rm -f test-us.c test-filter
67clean: mostlyclean
68distclean: clean
69 rm -f Makefile
70maintainer-clean realclean: distclean
71
72
73Makefile: $(srcdir)/Makefile.in ../config.status
74 CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
75 cd .. && $(SHELL) ./config.status