1 |
# |
# |
2 |
# Makefile |
# Makefile |
3 |
# Copyright (C) 1999 |
# Copyright (C) 1999, 2002 |
4 |
# Free Software Foundation |
# Free Software Foundation |
5 |
# |
# |
6 |
# This file is part of the libiberty library. |
# This file is part of the libiberty library. |
45 |
check: @CHECK@ |
check: @CHECK@ |
46 |
|
|
47 |
# Run some tests of the demangler. |
# Run some tests of the demangler. |
48 |
check-cplus-dem: test-filter $(srcdir)/demangle-expected |
check-cplus-dem: test-demangle $(srcdir)/demangle-expected |
49 |
$(SHELL) $(srcdir)/regress-demangle $(srcdir)/demangle-expected |
./test-demangle < $(srcdir)/demangle-expected |
50 |
|
|
|
# Note that we just hard-code prepends_underscore to 0. This doesn't |
|
|
# matter since any particular test can override the default if need |
|
|
# be. |
|
51 |
TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES) |
TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES) |
52 |
test-filter: $(srcdir)/../cplus-dem.c |
test-demangle: $(srcdir)/test-demangle.c ../libiberty.a |
53 |
echo 'int prepends_underscore = 0;' > test-us.c |
$(TEST_COMPILE) -o test-demangle \ |
54 |
$(TEST_COMPILE) -o test-filter -DMAIN -DVERSION='"none"' @DEFS@ \ |
$(srcdir)/test-demangle.c ../libiberty.a |
|
$(srcdir)/../cplus-dem.c test-us.c -L.. -liberty $(LOADLIBES) |
|
|
|
|
55 |
|
|
56 |
# Standard (either GNU or Cygnus) rules we don't use. |
# Standard (either GNU or Cygnus) rules we don't use. |
57 |
info install-info clean-info dvi install etags tags installcheck: |
info install-info clean-info dvi install etags tags installcheck: |
58 |
|
|
59 |
# The standard clean rules. |
# The standard clean rules. |
60 |
mostlyclean: |
mostlyclean: |
61 |
rm -f test-us.c test-filter |
rm -f test-demangle |
62 |
clean: mostlyclean |
clean: mostlyclean |
63 |
distclean: clean |
distclean: clean |
64 |
rm -f Makefile |
rm -f Makefile |
65 |
maintainer-clean realclean: distclean |
maintainer-clean realclean: distclean |
66 |
|
|
|
|
|
67 |
Makefile: $(srcdir)/Makefile.in ../config.status |
Makefile: $(srcdir)/Makefile.in ../config.status |
68 |
CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \ |
CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \ |
69 |
cd .. && $(SHELL) ./config.status |
cd .. && $(SHELL) ./config.status |