include.am 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. noinst_LIBRARIES += \
  2. src/common/libor.a \
  3. src/common/libor-crypto.a \
  4. src/common/libor-event.a
  5. if UNITTESTS_ENABLED
  6. noinst_LIBRARIES += \
  7. src/common/libor-testing.a \
  8. src/common/libor-crypto-testing.a \
  9. src/common/libor-event-testing.a
  10. endif
  11. EXTRA_DIST += src/common/Makefile.nmake
  12. if USE_OPENBSD_MALLOC
  13. libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
  14. else
  15. libor_extra_source=
  16. endif
  17. src_common_libcurve25519_donna_a_CFLAGS=
  18. if BUILD_CURVE25519_DONNA
  19. src_common_libcurve25519_donna_a_SOURCES=\
  20. src/ext/curve25519_donna/curve25519-donna.c
  21. # See bug 13538 -- this code is known to have signed overflow issues.
  22. src_common_libcurve25519_donna_a_CFLAGS+=\
  23. @F_OMIT_FRAME_POINTER@ @CFLAGS_CONSTTIME@
  24. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  25. LIBDONNA=src/common/libcurve25519_donna.a
  26. else
  27. if BUILD_CURVE25519_DONNA_C64
  28. src_common_libcurve25519_donna_a_CFLAGS+=@CFLAGS_CONSTTIME@
  29. src_common_libcurve25519_donna_a_SOURCES=\
  30. src/ext/curve25519_donna/curve25519-donna-c64.c
  31. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  32. LIBDONNA=src/common/libcurve25519_donna.a
  33. else
  34. LIBDONNA=
  35. endif
  36. endif
  37. LIBDONNA += $(LIBED25519_REF10)
  38. LIBDONNA += $(LIBED25519_DONNA)
  39. if THREADS_PTHREADS
  40. threads_impl_source=src/common/compat_pthreads.c
  41. endif
  42. if THREADS_WIN32
  43. threads_impl_source=src/common/compat_winthreads.c
  44. endif
  45. if BUILD_READPASSPHRASE_C
  46. readpassphrase_source=src/ext/readpassphrase.c
  47. else
  48. readpassphrase_source=
  49. endif
  50. LIBOR_A_SRC = \
  51. src/common/address.c \
  52. src/common/address_set.c \
  53. src/common/buffers.c \
  54. src/common/compat.c \
  55. src/common/compat_threads.c \
  56. src/common/compat_time.c \
  57. src/common/confline.c \
  58. src/common/container.c \
  59. src/common/log.c \
  60. src/common/memarea.c \
  61. src/common/pubsub.c \
  62. src/common/util.c \
  63. src/common/util_bug.c \
  64. src/common/util_format.c \
  65. src/common/util_process.c \
  66. src/common/sandbox.c \
  67. src/common/storagedir.c \
  68. src/common/token_bucket.c \
  69. src/common/workqueue.c \
  70. $(libor_extra_source) \
  71. $(threads_impl_source) \
  72. $(readpassphrase_source)
  73. src/common/src_common_libor_testing_a-log.$(OBJEXT) \
  74. src/common/log.$(OBJEXT): micro-revision.i
  75. LIBOR_CRYPTO_A_SRC = \
  76. src/common/aes.c \
  77. src/common/buffers_tls.c \
  78. src/common/crypto.c \
  79. src/common/crypto_dh.c \
  80. src/common/crypto_digest.c \
  81. src/common/crypto_format.c \
  82. src/common/crypto_hkdf.c \
  83. src/common/crypto_openssl_mgt.c \
  84. src/common/crypto_pwbox.c \
  85. src/common/crypto_rand.c \
  86. src/common/crypto_rsa.c \
  87. src/common/crypto_s2k.c \
  88. src/common/crypto_util.c \
  89. src/common/tortls.c \
  90. src/common/crypto_curve25519.c \
  91. src/common/crypto_ed25519.c
  92. LIBOR_EVENT_A_SRC = \
  93. src/common/compat_libevent.c \
  94. src/common/procmon.c \
  95. src/common/timers.c \
  96. src/ext/timeouts/timeout.c
  97. src_common_libor_a_SOURCES = $(LIBOR_A_SRC)
  98. src_common_libor_crypto_a_SOURCES = $(LIBOR_CRYPTO_A_SRC)
  99. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  100. if UNITTESTS_ENABLED
  101. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SRC)
  102. src_common_libor_crypto_testing_a_SOURCES = $(LIBOR_CRYPTO_A_SRC)
  103. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  104. else
  105. src_common_libor_testing_a_SOURCES =
  106. src_common_libor_crypto_testing_a_SOURCES =
  107. src_common_libor_event_testing_a_SOURCES =
  108. endif
  109. src_common_libor_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  110. src_common_libor_crypto_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  111. src_common_libor_event_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  112. src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  113. src_common_libor_crypto_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  114. src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  115. COMMONHEADERS = \
  116. src/common/address.h \
  117. src/common/address_set.h \
  118. src/common/buffers.h \
  119. src/common/buffers_tls.h \
  120. src/common/aes.h \
  121. src/common/ciphers.inc \
  122. src/common/compat.h \
  123. src/common/compat_compiler.h \
  124. src/common/compat_libevent.h \
  125. src/common/compat_openssl.h \
  126. src/common/compat_threads.h \
  127. src/common/compat_time.h \
  128. src/common/confline.h \
  129. src/common/container.h \
  130. src/common/crypto.h \
  131. src/common/crypto_dh.h \
  132. src/common/crypto_digest.h \
  133. src/common/crypto_curve25519.h \
  134. src/common/crypto_ed25519.h \
  135. src/common/crypto_format.h \
  136. src/common/crypto_hkdf.h \
  137. src/common/crypto_openssl_mgt.h \
  138. src/common/crypto_pwbox.h \
  139. src/common/crypto_rand.h \
  140. src/common/crypto_rsa.h \
  141. src/common/crypto_s2k.h \
  142. src/common/crypto_util.h \
  143. src/common/handles.h \
  144. src/common/memarea.h \
  145. src/common/linux_syscalls.inc \
  146. src/common/procmon.h \
  147. src/common/pubsub.h \
  148. src/common/sandbox.h \
  149. src/common/storagedir.h \
  150. src/common/testsupport.h \
  151. src/common/timers.h \
  152. src/common/token_bucket.h \
  153. src/common/torint.h \
  154. src/common/torlog.h \
  155. src/common/tortls.h \
  156. src/common/util.h \
  157. src/common/util_bug.h \
  158. src/common/util_format.h \
  159. src/common/util_process.h \
  160. src/common/workqueue.h
  161. noinst_HEADERS+= $(COMMONHEADERS)