Makefile.am 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. noinst_LIBRARIES = libor.a libor-crypto.a libor-event.a
  2. EXTRA_DIST = common_sha1.i sha256.c
  3. #CFLAGS = -Wall -Wpointer-arith -O2
  4. if USE_OPENBSD_MALLOC
  5. libor_extra_source=OpenBSD_malloc_Linux.c
  6. else
  7. libor_extra_source=
  8. endif
  9. libor_a_SOURCES = address.c log.c util.c compat.c container.c mempool.c \
  10. memarea.c util_codedigest.c $(libor_extra_source)
  11. libor_crypto_a_SOURCES = crypto.c aes.c tortls.c torgzip.c
  12. libor_event_a_SOURCES = compat_libevent.c
  13. noinst_HEADERS = address.h torlog.h crypto.h util.h compat.h aes.h torint.h tortls.h strlcpy.c strlcat.c torgzip.h container.h ht.h mempool.h memarea.h ciphers.inc compat_libevent.h tortls_states.h
  14. common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
  15. if test "@SHA1SUM@" != none; then \
  16. @SHA1SUM@ $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > common_sha1.i; \
  17. elif test "@OPENSSL@" != none; then \
  18. @OPENSSL@ sha1 $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > common_sha1.i; \
  19. else \
  20. rm common_sha1.i; \
  21. touch common_sha1.i; \
  22. fi
  23. util_codedigest.o: common_sha1.i
  24. crypto.o: sha256.c