include.am 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. #CFLAGS = -Wall -Wpointer-arith -O2
  13. AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common -I$(srcdir)/src/ext/trunnel -I$(srcdir)/src/trunnel
  14. if USE_OPENBSD_MALLOC
  15. libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
  16. else
  17. libor_extra_source=
  18. endif
  19. src_common_libcurve25519_donna_a_CFLAGS=
  20. if BUILD_CURVE25519_DONNA
  21. src_common_libcurve25519_donna_a_SOURCES=\
  22. src/ext/curve25519_donna/curve25519-donna.c
  23. src_common_libcurve25519_donna_a_CFLAGS+=\
  24. @F_OMIT_FRAME_POINTER@
  25. noinst_LIBRARIES+=src/common/libcurve25519_donna.a
  26. LIBDONNA=src/common/libcurve25519_donna.a
  27. else
  28. if BUILD_CURVE25519_DONNA_C64
  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_SOURCES = \
  51. src/common/address.c \
  52. src/common/backtrace.c \
  53. src/common/compat.c \
  54. src/common/compat_threads.c \
  55. src/common/container.c \
  56. src/common/di_ops.c \
  57. src/common/log.c \
  58. src/common/memarea.c \
  59. src/common/pubsub.c \
  60. src/common/util.c \
  61. src/common/util_format.c \
  62. src/common/util_process.c \
  63. src/common/sandbox.c \
  64. src/common/workqueue.c \
  65. src/ext/csiphash.c \
  66. src/ext/trunnel/trunnel.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_CRYPTO_A_SOURCES = \
  73. src/common/aes.c \
  74. src/common/crypto.c \
  75. src/common/crypto_pwbox.c \
  76. src/common/crypto_s2k.c \
  77. src/common/crypto_format.c \
  78. src/common/torgzip.c \
  79. src/common/tortls.c \
  80. src/trunnel/pwbox.c \
  81. src/common/crypto_curve25519.c \
  82. src/common/crypto_ed25519.c
  83. LIBOR_EVENT_A_SOURCES = \
  84. src/common/compat_libevent.c \
  85. src/common/procmon.c
  86. src_common_libor_a_SOURCES = $(LIBOR_A_SOURCES)
  87. src_common_libor_crypto_a_SOURCES = $(LIBOR_CRYPTO_A_SOURCES)
  88. src_common_libor_event_a_SOURCES = $(LIBOR_EVENT_A_SOURCES)
  89. src_common_libor_testing_a_SOURCES = $(LIBOR_A_SOURCES)
  90. src_common_libor_crypto_testing_a_SOURCES = $(LIBOR_CRYPTO_A_SOURCES)
  91. src_common_libor_event_testing_a_SOURCES = $(LIBOR_EVENT_A_SOURCES)
  92. src_common_libor_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  93. src_common_libor_crypto_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  94. src_common_libor_event_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  95. src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  96. src_common_libor_crypto_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  97. src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  98. COMMONHEADERS = \
  99. src/common/address.h \
  100. src/common/backtrace.h \
  101. src/common/aes.h \
  102. src/common/ciphers.inc \
  103. src/common/compat.h \
  104. src/common/compat_libevent.h \
  105. src/common/compat_openssl.h \
  106. src/common/compat_threads.h \
  107. src/common/container.h \
  108. src/common/crypto.h \
  109. src/common/crypto_curve25519.h \
  110. src/common/crypto_ed25519.h \
  111. src/common/crypto_format.h \
  112. src/common/crypto_pwbox.h \
  113. src/common/crypto_s2k.h \
  114. src/common/di_ops.h \
  115. src/common/memarea.h \
  116. src/common/linux_syscalls.inc \
  117. src/common/procmon.h \
  118. src/common/pubsub.h \
  119. src/common/sandbox.h \
  120. src/common/testsupport.h \
  121. src/common/torgzip.h \
  122. src/common/torint.h \
  123. src/common/torlog.h \
  124. src/common/tortls.h \
  125. src/common/util.h \
  126. src/common/util_format.h \
  127. src/common/util_process.h \
  128. src/common/workqueue.h
  129. noinst_HEADERS+= $(COMMONHEADERS)