Makefile.am 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # fibers
  2. # Copyright (C) 2016 Andy Wingo <wingo@pobox.com>
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU Lesser General Public License as
  6. # published by the Free Software Foundation, either version 3 of the
  7. # License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # Lesser General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU Lesser General Public
  15. # License along with this program. If not, see
  16. # <http://www.gnu.org/licenses/>.
  17. ACLOCAL_AMFLAGS = -I m4
  18. include build-aux/guile.am
  19. moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
  20. godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
  21. info_TEXINFOS=fibers.texi
  22. SOURCES = \
  23. fibers.scm \
  24. fibers/channels.scm \
  25. fibers/conditions.scm \
  26. fibers/config.scm \
  27. fibers/counter.scm \
  28. fibers/deque.scm \
  29. fibers/epoll.scm \
  30. fibers/interrupts.scm \
  31. fibers/io-wakeup.scm \
  32. fibers/nameset.scm \
  33. fibers/operations.scm \
  34. fibers/posix-clocks.scm \
  35. fibers/psq.scm \
  36. fibers/scheduler.scm \
  37. fibers/stack.scm \
  38. fibers/repl.scm \
  39. fibers/timers.scm \
  40. fibers/web/server.scm \
  41. web/server/fibers.scm
  42. BUILT_SOURCES = fibers/config.scm
  43. extlibdir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/extensions
  44. extlib_LTLIBRARIES = epoll.la
  45. AM_CFLAGS = -I$(srcdir) $(WARN_CFLAGS) $(DEBUG_CFLAGS)
  46. epoll_la_SOURCES = epoll.c
  47. epoll_la_CFLAGS = $(AM_CFLAGS) $(GUILE_CFLAGS)
  48. epoll_la_LIBADD = $(GUILE_LIBS)
  49. epoll_la_LDFLAGS = -export-dynamic -module
  50. $(GOBJECTS): epoll.la
  51. fibers/config.scm: Makefile fibers/config.scm.in
  52. mkdir -p fibers
  53. sed -e "s|@extlibdir\@|$(extlibdir)|" \
  54. $(srcdir)/fibers/config.scm.in > fibers/config.scm
  55. CLEANFILES += fibers/config.scm
  56. TESTS = \
  57. tests/basic.scm \
  58. tests/conditions.scm \
  59. tests/channels.scm \
  60. tests/foreign.scm \
  61. tests/io-wakeup.scm \
  62. tests/parameters.scm \
  63. tests/preemption.scm \
  64. tests/speedup.scm
  65. TESTS_ENVIRONMENT=top_srcdir="$(abs_top_srcdir)" ./env $(GUILE) -s
  66. EXTRA_DIST += \
  67. env.in \
  68. fibers/config.scm.in \
  69. HACKING \
  70. COPYING.LESSER \
  71. README.md \
  72. TODO.md \
  73. $(bin_SCRIPTS) \
  74. $(TESTS) \
  75. examples