include.am 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. src_common_libcurve25519_donna_a_CFLAGS=
  16. if BUILD_CURVE25519_DONNA
  17. src_common_libcurve25519_donna_a_SOURCES=\
  18. src/ext/curve25519_donna/curve25519-donna.c
  19. # See bug 13538 -- this code is known to have signed overflow issues.
  20. src_common_libcurve25519_donna_a_CFLAGS+=\
  21. @F_OMIT_FRAME_POINTER@ @CFLAGS_CONSTTIME@
  22. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  23. LIBDONNA=src/common/libcurve25519_donna.a
  24. else
  25. if BUILD_CURVE25519_DONNA_C64
  26. src_common_libcurve25519_donna_a_CFLAGS+=@CFLAGS_CONSTTIME@
  27. src_common_libcurve25519_donna_a_SOURCES=\
  28. src/ext/curve25519_donna/curve25519-donna-c64.c
  29. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  30. LIBDONNA=src/common/libcurve25519_donna.a
  31. else
  32. LIBDONNA=
  33. endif
  34. endif
  35. LIBDONNA += $(LIBED25519_REF10)
  36. LIBDONNA += $(LIBED25519_DONNA)
  37. if THREADS_PTHREADS
  38. threads_impl_source=src/common/compat_pthreads.c
  39. endif
  40. if THREADS_WIN32
  41. threads_impl_source=src/common/compat_winthreads.c
  42. endif
  43. if BUILD_READPASSPHRASE_C
  44. readpassphrase_source=src/ext/readpassphrase.c
  45. else
  46. readpassphrase_source=
  47. endif
  48. LIBOR_A_SRC = \
  49. src/common/address.c \
  50. src/common/address_set.c \
  51. src/common/buffers.c \
  52. src/common/compat.c \
  53. src/common/compat_threads.c \
  54. src/common/compat_time.c \
  55. src/common/confline.c \
  56. src/common/container.c \
  57. src/common/log.c \
  58. src/common/memarea.c \
  59. src/common/util.c \
  60. src/common/util_bug.c \
  61. src/common/util_format.c \
  62. src/common/util_process.c \
  63. src/common/sandbox.c \
  64. src/common/storagedir.c \
  65. src/common/token_bucket.c \
  66. src/common/workqueue.c \
  67. $(libor_extra_source) \
  68. $(threads_impl_source) \
  69. $(readpassphrase_source)
  70. src/common/src_common_libor_testing_a-log.$(OBJEXT) \
  71. src/common/log.$(OBJEXT): micro-revision.i
  72. LIBOR_EVENT_A_SRC = \
  73. src/common/compat_libevent.c \
  74. src/common/procmon.c \
  75. src/common/timers.c \
  76. src/ext/timeouts/timeout.c
  77. src_common_libor_a_SOURCES = $(LIBOR_A_SRC)
  78. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  79. if UNITTESTS_ENABLED
  80. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SRC)
  81. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  82. else
  83. src_common_libor_testing_a_SOURCES =
  84. src_common_libor_event_testing_a_SOURCES =
  85. endif
  86. src_common_libor_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  87. src_common_libor_event_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  88. src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  89. src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  90. COMMONHEADERS = \
  91. src/common/address.h \
  92. src/common/address_set.h \
  93. src/common/buffers.h \
  94. src/common/compat.h \
  95. src/common/compat_libevent.h \
  96. src/common/compat_threads.h \
  97. src/common/compat_time.h \
  98. src/common/confline.h \
  99. src/common/container.h \
  100. src/common/handles.h \
  101. src/common/memarea.h \
  102. src/common/linux_syscalls.inc \
  103. src/common/procmon.h \
  104. src/common/sandbox.h \
  105. src/common/storagedir.h \
  106. src/common/testsupport.h \
  107. src/common/timers.h \
  108. src/common/token_bucket.h \
  109. src/common/torlog.h \
  110. src/common/util.h \
  111. src/common/util_bug.h \
  112. src/common/util_format.h \
  113. src/common/util_process.h \
  114. src/common/workqueue.h
  115. noinst_HEADERS+= $(COMMONHEADERS)