Makefile.am 807 B

12345678910111213141516171819202122232425
  1. TESTS = test
  2. noinst_PROGRAMS = test
  3. AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
  4. -DLOCALSTATEDIR="\"$(localstatedir)\"" \
  5. -DBINDIR="\"$(bindir)\""
  6. AM_CFLAGS = -I../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 = test_data.c test.c test_crypto.c test_containers.c tinytest.c
  11. test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
  12. @TOR_LDFLAGS_libevent@
  13. test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
  14. ../common/libor-event.a \
  15. -lz -lm -levent -lssl -lcrypto @TOR_LIB_WS32@ @TOR_LIB_GDI@
  16. noinst_HEADERS = tinytest.h tinytest_macros.h
  17. EXTRA_DIST = tinytest_demo.c