include.am 2.1 KB

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