include.am 2.1 KB

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