Makefile.am 1.0 KB

123456789101112131415161718192021222324252627282930
  1. noinst_LIBRARIES = libor.a libor-crypto.a
  2. EXTRA_DIST = common_sha1.i
  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 $(libor_extra_source)
  11. libor_crypto_a_SOURCES = crypto.c aes.c tortls.c torgzip.c
  12. noinst_HEADERS = address.h log.h crypto.h test.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
  13. common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
  14. if test "@SHA1SUM@" != none; then \
  15. @SHA1SUM@ $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > common_sha1.i; \
  16. elif test "@OPENSSL@" != none; then \
  17. @OPENSSL@ sha1 $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > common_sha1.i; \
  18. else \
  19. rm common_sha1.i; \
  20. touch common_sha1.i; \
  21. fi
  22. util.o: common_sha1.i