Makefile.am 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_microdesc.c \
  18. test_pt.c \
  19. test_util.c \
  20. tinytest.c
  21. bench_SOURCES = \
  22. bench.c
  23. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  24. @TOR_LDFLAGS_libevent@
  25. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  26. ../common/libor-event.a \
  27. @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
  28. @TOR_LIB_WS32@ @TOR_LIB_GDI@
  29. bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  30. @TOR_LDFLAGS_libevent@
  31. bench_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  32. ../common/libor-event.a \
  33. @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
  34. @TOR_LIB_WS32@ @TOR_LIB_GDI@
  35. noinst_HEADERS = \
  36. tinytest.h \
  37. tinytest_macros.h \
  38. test.h