include.am 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. TESTS+= src/test/test
  2. noinst_PROGRAMS+= src/test/test src/test/test-child src/test/bench
  3. src_test_AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
  4. -DLOCALSTATEDIR="\"$(localstatedir)\"" \
  5. -DBINDIR="\"$(bindir)\"" \
  6. -I"$(top_srcdir)/src/or" -I"$(top_srcdir)/src/ext"
  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. src_test_test_SOURCES = \
  11. src/test/test.c \
  12. src/test/test_addr.c \
  13. src/test/test_containers.c \
  14. src/test/test_crypto.c \
  15. src/test/test_data.c \
  16. src/test/test_dir.c \
  17. src/test/test_introduce.c \
  18. src/test/test_microdesc.c \
  19. src/test/test_pt.c \
  20. src/test/test_replay.c \
  21. src/test/test_util.c \
  22. src/test/test_config.c \
  23. src/ext/tinytest.c
  24. src_test_test_CPPFLAGS= $(src_test_AM_CPPFLAGS)
  25. src_test_bench_SOURCES = \
  26. src/test/bench.c
  27. src_test_bench_CPPFLAGS= $(src_test_AM_CPPFLAGS)
  28. src_test_test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  29. @TOR_LDFLAGS_libevent@
  30. src_test_test_LDADD = src/or/libtor.a src/common/libor.a src/common/libor-crypto.a \
  31. src/common/libor-event.a \
  32. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
  33. @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
  34. src_test_bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  35. @TOR_LDFLAGS_libevent@
  36. src_test_bench_LDADD = src/or/libtor.a src/common/libor.a src/common/libor-crypto.a \
  37. src/common/libor-event.a \
  38. @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
  39. @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
  40. noinst_HEADERS+= \
  41. src/test/test.h