Makefile.am 1013 B

123456789101112131415161718192021222324252627282930313233343536373839
  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_data.c \
  12. test.c \
  13. test_addr.c \
  14. test_crypto.c \
  15. test_dir.c \
  16. test_containers.c \
  17. test_util.c \
  18. tinytest.c
  19. if USE_BUFFEREVENTS
  20. levent_openssl_lib = -levent_openssl
  21. else
  22. levent_openssl_lib =
  23. endif
  24. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  25. @TOR_LDFLAGS_libevent@
  26. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  27. ../common/libor-event.a \
  28. @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
  29. @TOR_LIB_WS32@ @TOR_LIB_GDI@ $(levent_openssl_lib)
  30. noinst_HEADERS = tinytest.h tinytest_macros.h test.h