include.am 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. noinst_LIBRARIES += \
  2. src/common/libor.a \
  3. src/common/libor-ctime.a \
  4. src/common/libor-crypto.a \
  5. src/common/libor-event.a
  6. if UNITTESTS_ENABLED
  7. noinst_LIBRARIES += \
  8. src/common/libor-testing.a \
  9. src/common/libor-ctime-testing.a \
  10. src/common/libor-crypto-testing.a \
  11. src/common/libor-event-testing.a
  12. endif
  13. EXTRA_DIST += src/common/Makefile.nmake
  14. #CFLAGS = -Wall -Wpointer-arith -O2
  15. AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common -I$(srcdir)/src/ext/trunnel -I$(srcdir)/src/trunnel
  16. if USE_OPENBSD_MALLOC
  17. libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
  18. else
  19. libor_extra_source=
  20. endif
  21. src_common_libcurve25519_donna_a_CFLAGS=
  22. if BUILD_CURVE25519_DONNA
  23. src_common_libcurve25519_donna_a_SOURCES=\
  24. src/ext/curve25519_donna/curve25519-donna.c
  25. # See bug 13538 -- this code is known to have signed overflow issues.
  26. src_common_libcurve25519_donna_a_CFLAGS+=\
  27. @F_OMIT_FRAME_POINTER@ @CFLAGS_CONSTTIME@
  28. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  29. LIBDONNA=src/common/libcurve25519_donna.a
  30. else
  31. if BUILD_CURVE25519_DONNA_C64
  32. src_common_libcurve25519_donna_a_CFLAGS+=@CFLAGS_CONSTTIME@
  33. src_common_libcurve25519_donna_a_SOURCES=\
  34. src/ext/curve25519_donna/curve25519-donna-c64.c
  35. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  36. LIBDONNA=src/common/libcurve25519_donna.a
  37. else
  38. LIBDONNA=
  39. endif
  40. endif
  41. LIBDONNA += $(LIBED25519_REF10)
  42. LIBDONNA += $(LIBED25519_DONNA)
  43. if THREADS_PTHREADS
  44. threads_impl_source=src/common/compat_pthreads.c
  45. endif
  46. if THREADS_WIN32
  47. threads_impl_source=src/common/compat_winthreads.c
  48. endif
  49. if BUILD_READPASSPHRASE_C
  50. readpassphrase_source=src/ext/readpassphrase.c
  51. else
  52. readpassphrase_source=
  53. endif
  54. if ADD_MULODI4
  55. mulodi4_source=src/ext/mulodi/mulodi4.c
  56. else
  57. mulodi4_source=
  58. endif
  59. LIBOR_CTIME_A_SRC = \
  60. $(mulodi4_source) \
  61. src/ext/csiphash.c \
  62. src/common/di_ops.c
  63. src_common_libor_ctime_a_SOURCES = $(LIBOR_CTIME_A_SRC)
  64. src_common_libor_ctime_testing_a_SOURCES = $(LIBOR_CTIME_A_SRC)
  65. src_common_libor_ctime_a_CFLAGS = @CFLAGS_CONSTTIME@
  66. src_common_libor_ctime_testing_a_CFLAGS = @CFLAGS_CONSTTIME@ $(TEST_CFLAGS)
  67. LIBOR_A_SRC = \
  68. src/common/address.c \
  69. src/common/backtrace.c \
  70. src/common/compat.c \
  71. src/common/compat_threads.c \
  72. src/common/compat_time.c \
  73. src/common/container.c \
  74. src/common/log.c \
  75. src/common/memarea.c \
  76. src/common/pubsub.c \
  77. src/common/util.c \
  78. src/common/util_bug.c \
  79. src/common/util_format.c \
  80. src/common/util_process.c \
  81. src/common/sandbox.c \
  82. src/common/workqueue.c \
  83. $(libor_extra_source) \
  84. $(threads_impl_source) \
  85. $(readpassphrase_source)
  86. src/common/src_common_libor_testing_a-log.$(OBJEXT) \
  87. src/common/log.$(OBJEXT): micro-revision.i
  88. LIBOR_CRYPTO_A_SRC = \
  89. src/common/aes.c \
  90. src/common/crypto.c \
  91. src/common/crypto_pwbox.c \
  92. src/common/crypto_s2k.c \
  93. src/common/crypto_format.c \
  94. src/common/torgzip.c \
  95. src/common/tortls.c \
  96. src/common/crypto_curve25519.c \
  97. src/common/crypto_ed25519.c
  98. LIBOR_EVENT_A_SRC = \
  99. src/common/compat_libevent.c \
  100. src/common/procmon.c \
  101. src/common/timers.c \
  102. src/ext/timeouts/timeout.c
  103. src_common_libor_a_SOURCES = $(LIBOR_A_SRC)
  104. src_common_libor_crypto_a_SOURCES = $(LIBOR_CRYPTO_A_SRC)
  105. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  106. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SRC)
  107. src_common_libor_crypto_testing_a_SOURCES = $(LIBOR_CRYPTO_A_SRC)
  108. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SRC)
  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/backtrace.h \
  118. src/common/aes.h \
  119. src/common/ciphers.inc \
  120. src/common/compat.h \
  121. src/common/compat_libevent.h \
  122. src/common/compat_openssl.h \
  123. src/common/compat_threads.h \
  124. src/common/container.h \
  125. src/common/crypto.h \
  126. src/common/crypto_curve25519.h \
  127. src/common/crypto_ed25519.h \
  128. src/common/crypto_format.h \
  129. src/common/crypto_pwbox.h \
  130. src/common/crypto_s2k.h \
  131. src/common/di_ops.h \
  132. src/common/handles.h \
  133. src/common/memarea.h \
  134. src/common/linux_syscalls.inc \
  135. src/common/procmon.h \
  136. src/common/pubsub.h \
  137. src/common/sandbox.h \
  138. src/common/testsupport.h \
  139. src/common/timers.h \
  140. src/common/torgzip.h \
  141. src/common/torint.h \
  142. src/common/torlog.h \
  143. src/common/tortls.h \
  144. src/common/util.h \
  145. src/common/util_bug.h \
  146. src/common/util_format.h \
  147. src/common/util_process.h \
  148. src/common/workqueue.h
  149. noinst_HEADERS+= $(COMMONHEADERS)