Makefile.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #
  2. # Makefile
  3. # Copyright (C) 1999, 2002, 2006
  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., 51 Franklin Street, Fifth Floor,
  20. # Boston, MA 02110-1301, USA.
  21. #
  22. # This file was written by Tom Tromey <tromey@cygnus.com>.
  23. #
  24. # Makefile for libiberty/testsuite directory
  25. #
  26. srcdir = @srcdir@
  27. VPATH = @srcdir@
  28. SHELL = @SHELL@
  29. CC = @CC@
  30. CFLAGS = @CFLAGS@
  31. LIBCFLAGS = $(CFLAGS)
  32. # Multilib support variables.
  33. MULTISRCTOP =
  34. INCDIR=$(srcdir)/../$(MULTISRCTOP)../include
  35. all:
  36. # CHECK is set to "really_check" or the empty string by configure.
  37. check: @CHECK@
  38. really-check: check-cplus-dem check-d-demangle check-pexecute check-expandargv \
  39. check-strtol
  40. # Run some tests of the demangler.
  41. check-cplus-dem: test-demangle $(srcdir)/demangle-expected
  42. ./test-demangle < $(srcdir)/demangle-expected
  43. check-d-demangle: test-demangle $(srcdir)/d-demangle-expected
  44. ./test-demangle < $(srcdir)/d-demangle-expected
  45. # Check the pexecute code.
  46. check-pexecute: test-pexecute
  47. ./test-pexecute
  48. # Check the expandargv functionality
  49. check-expandargv: test-expandargv
  50. ./test-expandargv
  51. # Check the strtol functionality
  52. check-strtol: test-strtol
  53. ./test-strtol
  54. # Run the demangler fuzzer
  55. fuzz-demangler: demangler-fuzzer
  56. ./demangler-fuzzer
  57. TEST_COMPILE = $(CC) @DEFS@ $(LIBCFLAGS) -I.. -I$(INCDIR) $(HDEFINES)
  58. test-demangle: $(srcdir)/test-demangle.c ../libiberty.a
  59. $(TEST_COMPILE) -o test-demangle \
  60. $(srcdir)/test-demangle.c ../libiberty.a
  61. test-pexecute: $(srcdir)/test-pexecute.c ../libiberty.a
  62. $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-pexecute \
  63. $(srcdir)/test-pexecute.c ../libiberty.a
  64. test-expandargv: $(srcdir)/test-expandargv.c ../libiberty.a
  65. $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-expandargv \
  66. $(srcdir)/test-expandargv.c ../libiberty.a
  67. test-strtol: $(srcdir)/test-strtol.c ../libiberty.a
  68. $(TEST_COMPILE) -DHAVE_CONFIG_H -I.. -o test-strtol \
  69. $(srcdir)/test-strtol.c ../libiberty.a
  70. demangler-fuzzer: $(srcdir)/demangler-fuzzer.c ../libiberty.a
  71. $(TEST_COMPILE) -o demangler-fuzzer \
  72. $(srcdir)/demangler-fuzzer.c ../libiberty.a
  73. # Standard (either GNU or Cygnus) rules we don't use.
  74. html install-html info install-info clean-info dvi pdf install-pdf \
  75. install etags tags installcheck:
  76. # The standard clean rules.
  77. mostlyclean:
  78. rm -f test-demangle
  79. rm -f test-pexecute
  80. rm -f test-expandargv
  81. rm -f test-strtol
  82. rm -f demangler-fuzzer
  83. rm -f core
  84. clean: mostlyclean
  85. distclean: clean
  86. rm -f Makefile
  87. maintainer-clean realclean: distclean
  88. Makefile: $(srcdir)/Makefile.in ../config.status
  89. CONFIG_FILES=testsuite/Makefile CONFIG_HEADERS= \
  90. cd .. && $(SHELL) ./config.status