Makefile.am 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. TESTS = test
  2. noinst_PROGRAMS = test test-child bench
  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.c \
  12. test_addr.c \
  13. test_containers.c \
  14. test_crypto.c \
  15. test_data.c \
  16. test_dir.c \
  17. test_introduce.c \
  18. test_microdesc.c \
  19. test_pt.c \
  20. test_replay.c \
  21. test_util.c \
  22. test_config.c \
  23. tinytest.c
  24. bench_SOURCES = \
  25. bench.c
  26. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  27. @TOR_LDFLAGS_libevent@
  28. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  29. ../common/libor-event.a \
  30. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
  31. @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
  32. bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  33. @TOR_LDFLAGS_libevent@
  34. bench_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  35. ../common/libor-event.a \
  36. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
  37. @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
  38. noinst_HEADERS = \
  39. tinytest.h \
  40. tinytest_macros.h \
  41. test.h