include.am 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. noinst_LIBRARIES += \
  2. src/common/libor.a \
  3. src/common/libor-event.a
  4. if UNITTESTS_ENABLED
  5. noinst_LIBRARIES += \
  6. src/common/libor-testing.a \
  7. src/common/libor-event-testing.a
  8. endif
  9. EXTRA_DIST += src/common/Makefile.nmake
  10. if USE_OPENBSD_MALLOC
  11. libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
  12. else
  13. libor_extra_source=
  14. endif
  15. LIBOR_A_SRC = \
  16. src/common/address_set.c \
  17. src/common/token_bucket.c \
  18. src/common/workqueue.c \
  19. $(libor_extra_source)
  20. src/common/src_common_libor_testing_a-log.$(OBJEXT) \
  21. src/common/log.$(OBJEXT): micro-revision.i
  22. LIBOR_EVENT_A_SRC = \
  23. src/common/compat_libevent.c \
  24. src/common/procmon.c \
  25. src/common/timers.c \
  26. src/ext/timeouts/timeout.c
  27. src_common_libor_a_SOURCES = $(LIBOR_A_SRC)
  28. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  29. if UNITTESTS_ENABLED
  30. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SRC)
  31. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  32. else
  33. src_common_libor_testing_a_SOURCES =
  34. src_common_libor_event_testing_a_SOURCES =
  35. endif
  36. src_common_libor_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  37. src_common_libor_event_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  38. src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  39. src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  40. COMMONHEADERS = \
  41. src/common/address_set.h \
  42. src/common/compat_libevent.h \
  43. src/common/procmon.h \
  44. src/common/timers.h \
  45. src/common/token_bucket.h \
  46. src/common/util.h \
  47. src/common/workqueue.h
  48. noinst_HEADERS+= $(COMMONHEADERS)