Makefile.am 873 B

123456789101112131415161718192021222324252627282930
  1. TESTS = test
  2. noinst_PROGRAMS = test
  3. AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
  4. -DLOCALSTATEDIR="\"$(localstatedir)\"" \
  5. -DBINDIR="\"$(bindir)\"" \
  6. -I"$(top_srcdir)/src/or"
  7. # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
  8. # This seems to matter nowhere but on windows, but I assure you that it
  9. # matters a lot there, and is quite hard to debug if you forget to do it.
  10. test_SOURCES = \
  11. test_data.c \
  12. test.c \
  13. test_addr.c \
  14. test_crypto.c \
  15. test_dir.c \
  16. test_containers.c \
  17. test_util.c \
  18. tinytest.c
  19. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  20. @TOR_LDFLAGS_libevent@
  21. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  22. ../common/libor-event.a \
  23. -lz -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
  24. noinst_HEADERS = tinytest.h tinytest_macros.h test.h