Makefile.am 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ## Process this file with automake to generate Makefile.in
  2. #
  3. # Copyright (C) 2021 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with this program; see the file COPYING3. If not see
  17. # <http://www.gnu.org/licenses/>.
  18. ACLOCAL_AMFLAGS = -I . -I ..
  19. AUTOMAKE_OPTIONS = dejagnu foreign
  20. if BUILD_COLLECTOR
  21. COLLECTOR_SUBDIRS = libcollector
  22. endif
  23. if BUILD_SRC
  24. SRC_SUBDIRS = src gp-display-html doc
  25. endif
  26. SUBDIRS = $(COLLECTOR_SUBDIRS) $(SRC_SUBDIRS)
  27. DIST_SUBDIRS = libcollector src gp-display-html doc
  28. # Setup the testing framework, if you have one
  29. EXPECT = expect
  30. RUNTEST = runtest
  31. RUNTESTFLAGS =
  32. BASEDIR = $(srcdir)/..
  33. BFDDIR = $(BASEDIR)/bfd
  34. jdk_inc = @jdk_inc@
  35. LD_NO_AS_NEEDED = @LD_NO_AS_NEEDED@
  36. GPROFNG_CFLAGS = @GPROFNG_CFLAGS@
  37. GPROFNG_CPPFLAGS = @GPROFNG_CPPFLAGS@
  38. GPROFNG_BROKEN_JAVAC = @GPROFNG_BROKEN_JAVAC@
  39. AM_MAKEFLAGS = \
  40. jdk_inc="$(jdk_inc)" \
  41. LD_NO_AS_NEEDED="$(LD_NO_AS_NEEDED)" \
  42. GPROFNG_CFLAGS="$(GPROFNG_CFLAGS)" \
  43. GPROFNG_CPPFLAGS="$(GPROFNG_CPPFLAGS)"
  44. if TCL_TRY
  45. check-DEJAGNU: site.exp development.exp
  46. srcroot=`cd $(srcdir) && pwd`; export srcroot; \
  47. r=`pwd`; export r; \
  48. LC_ALL=C; export LC_ALL; \
  49. EXPECT=$(EXPECT); export EXPECT; \
  50. jdk_inc="$(jdk_inc)"; export jdk_inc; \
  51. runtest=$(RUNTEST); \
  52. if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
  53. $$runtest --tool $(DEJATOOL) --srcdir $${srcroot}/testsuite \
  54. GPROFNG_BROKEN_JAVAC="$(GPROFNG_BROKEN_JAVAC)" \
  55. MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS) $(PTHREAD_CFLAGS)" \
  56. LDFLAGS="$(LDFLAGS)" LIBS="$(PTHREAD_LIBS) $(LIBS)" \
  57. BUILDDIR="$(abs_top_builddir)" $(RUNTESTFLAGS); \
  58. else echo "WARNING: could not find \`runtest'" 1>&2; :;\
  59. fi
  60. development.exp: $(BFDDIR)/development.sh
  61. $(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \
  62. | $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
  63. # development.sh is used to determine -Werror default.
  64. CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
  65. EXTRA_DEJAGNU_SITE_CONFIG = development.exp
  66. DISTCLEANFILES = site.exp development.exp
  67. endif