1 | #
|
---|
2 | # Makefile
|
---|
3 | # Copyright (C) 1999, 2002
|
---|
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 |
|
---|
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: @CHECK@
|
---|
46 |
|
---|
47 | # Run some tests of the demangler.
|
---|
48 | check-cplus-dem: test-demangle $(srcdir)/demangle-expected
|
---|
49 | ./test-demangle < $(srcdir)/demangle-expected
|
---|
50 |
|
---|
51 | TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
|
---|
52 | test-demangle: $(srcdir)/test-demangle.c
|
---|
53 | $(TEST_COMPILE) -o test-demangle \
|
---|
54 | $(srcdir)/test-demangle.c ../libiberty.a
|
---|
55 |
|
---|
56 | # Standard (either GNU or Cygnus) rules we don't use.
|
---|
57 | info install-info clean-info dvi install etags tags installcheck:
|
---|
58 |
|
---|
59 | # The standard clean rules.
|
---|
60 | mostlyclean:
|
---|
61 | rm -f test-demangle
|
---|
62 | clean: mostlyclean
|
---|
63 | distclean: clean
|
---|
64 | rm -f Makefile
|
---|
65 | maintainer-clean realclean: distclean
|
---|
66 |
|
---|
67 | Makefile: $(srcdir)/Makefile.in ../config.status
|
---|
68 | CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
|
---|
69 | cd .. && $(SHELL) ./config.status
|
---|