Makefile.am 930 B

12345678910111213141516171819202122232425262728293031323334353637
  1. TESTS = test
  2. noinst_PROGRAMS = test test-child
  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_util.c \
  19. tinytest.c
  20. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  21. @TOR_LDFLAGS_libevent@
  22. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  23. ../common/libor-event.a \
  24. @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
  25. @TOR_LIB_WS32@ @TOR_LIB_GDI@
  26. noinst_HEADERS = \
  27. tinytest.h \
  28. tinytest_macros.h \
  29. test.h