Makefile.am 1.3 KB

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