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