include.am 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. noinst_LIBRARIES+= src/common/libor.a src/common/libor-crypto.a src/common/libor-event.a
  2. EXTRA_DIST+= \
  3. src/common/common_sha1.i \
  4. src/common/Makefile.nmake
  5. #CFLAGS = -Wall -Wpointer-arith -O2
  6. AM_CPPFLAGS += -I$(srcdir)/src/common -Isrc/common
  7. if USE_OPENBSD_MALLOC
  8. libor_extra_source=src/ext/OpenBSD_malloc_Linux.c
  9. else
  10. libor_extra_source=
  11. endif
  12. if BUILD_CURVE25519_DONNA
  13. libcrypto_extra_source= \
  14. src/ext/curve25519_donna/curve25519-donna.c \
  15. src/common/crypto_curve25519.c
  16. else
  17. if BUILD_CURVE25519_DONNA_C64
  18. libcrypto_extra_source= \
  19. src/ext/curve25519_donna/curve25519-donna-c64.c \
  20. src/common/crypto_curve25519.c
  21. else
  22. if CURVE25519_ENABLED
  23. libcrypto_extra_source=src/common/crypto_curve25519.c
  24. endif
  25. endif
  26. endif
  27. src_common_libor_a_SOURCES = \
  28. src/common/address.c \
  29. src/common/compat.c \
  30. src/common/container.c \
  31. src/common/di_ops.c \
  32. src/common/log.c \
  33. src/common/memarea.c \
  34. src/common/mempool.c \
  35. src/common/procmon.c \
  36. src/common/util.c \
  37. src/common/util_codedigest.c \
  38. $(libor_extra_source)
  39. src_common_libor_crypto_a_SOURCES = \
  40. src/common/aes.c \
  41. src/common/crypto.c \
  42. src/common/torgzip.c \
  43. src/common/tortls.c \
  44. $(libcrypto_extra_source)
  45. src_common_libor_event_a_SOURCES = src/common/compat_libevent.c
  46. COMMONHEADERS = \
  47. src/common/address.h \
  48. src/common/aes.h \
  49. src/common/ciphers.inc \
  50. src/common/compat.h \
  51. src/common/compat_libevent.h \
  52. src/common/container.h \
  53. src/common/crypto.h \
  54. src/common/crypto_curve25519.h \
  55. src/common/di_ops.h \
  56. src/common/memarea.h \
  57. src/common/mempool.h \
  58. src/common/procmon.h \
  59. src/common/torgzip.h \
  60. src/common/torint.h \
  61. src/common/torlog.h \
  62. src/common/tortls.h \
  63. src/common/util.h
  64. noinst_HEADERS+= $(COMMONHEADERS)
  65. DISTCLEANFILES+= src/common/common_sha1.i
  66. src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(COMMONHEADERS)
  67. $(AM_V_GEN)if test "@SHA1SUM@" != none; then \
  68. (cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > $@; \
  69. elif test "@OPENSSL@" != none; then \
  70. (cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > $@; \
  71. else \
  72. rm $@; \
  73. touch $@; \
  74. fi
  75. src/common/util_codedigest.o: src/common/common_sha1.i