include.am 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. if BUILD_READPASSPHRASE_C
  16. readpassphrase_source=src/ext/readpassphrase.c
  17. else
  18. readpassphrase_source=
  19. endif
  20. LIBOR_A_SRC = \
  21. src/common/address_set.c \
  22. src/common/buffers.c \
  23. src/common/compat.c \
  24. src/common/compat_time.c \
  25. src/common/util.c \
  26. src/common/token_bucket.c \
  27. src/common/workqueue.c \
  28. $(libor_extra_source) \
  29. $(readpassphrase_source)
  30. src/common/src_common_libor_testing_a-log.$(OBJEXT) \
  31. src/common/log.$(OBJEXT): micro-revision.i
  32. LIBOR_EVENT_A_SRC = \
  33. src/common/compat_libevent.c \
  34. src/common/procmon.c \
  35. src/common/timers.c \
  36. src/ext/timeouts/timeout.c
  37. src_common_libor_a_SOURCES = $(LIBOR_A_SRC)
  38. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  39. if UNITTESTS_ENABLED
  40. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SRC)
  41. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  42. else
  43. src_common_libor_testing_a_SOURCES =
  44. src_common_libor_event_testing_a_SOURCES =
  45. endif
  46. src_common_libor_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  47. src_common_libor_event_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  48. src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  49. src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  50. COMMONHEADERS = \
  51. src/common/address_set.h \
  52. src/common/buffers.h \
  53. src/common/compat.h \
  54. src/common/compat_libevent.h \
  55. src/common/compat_time.h \
  56. src/common/handles.h \
  57. src/common/procmon.h \
  58. src/common/timers.h \
  59. src/common/token_bucket.h \
  60. src/common/util.h \
  61. src/common/workqueue.h
  62. noinst_HEADERS+= $(COMMONHEADERS)