2009-09-22 18:31:15 +02:00
|
|
|
TESTS = test
|
|
|
|
|
2010-10-10 19:12:23 +02:00
|
|
|
noinst_PROGRAMS = test test-child
|
2009-09-22 18:31:15 +02:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
|
|
|
|
-DLOCALSTATEDIR="\"$(localstatedir)\"" \
|
2009-11-08 06:38:46 +01:00
|
|
|
-DBINDIR="\"$(bindir)\"" \
|
|
|
|
-I"$(top_srcdir)/src/or"
|
2009-09-22 18:31:15 +02:00
|
|
|
|
|
|
|
# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
|
|
|
|
# This seems to matter nowhere but on windows, but I assure you that it
|
|
|
|
# matters a lot there, and is quite hard to debug if you forget to do it.
|
|
|
|
|
2009-09-22 19:29:55 +02:00
|
|
|
test_SOURCES = \
|
|
|
|
test_data.c \
|
|
|
|
test.c \
|
|
|
|
test_addr.c \
|
|
|
|
test_crypto.c \
|
2009-09-22 19:49:09 +02:00
|
|
|
test_dir.c \
|
2009-09-22 19:29:55 +02:00
|
|
|
test_containers.c \
|
|
|
|
test_util.c \
|
2010-10-07 21:28:54 +02:00
|
|
|
test_microdesc.c \
|
2009-09-22 19:29:55 +02:00
|
|
|
tinytest.c
|
2009-09-22 18:31:15 +02:00
|
|
|
|
2010-03-09 05:24:24 +01:00
|
|
|
if USE_BUFFEREVENTS
|
|
|
|
levent_openssl_lib = -levent_openssl
|
|
|
|
else
|
|
|
|
levent_openssl_lib =
|
|
|
|
endif
|
|
|
|
|
2009-09-22 18:31:15 +02:00
|
|
|
test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
|
|
|
|
@TOR_LDFLAGS_libevent@
|
|
|
|
test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
|
|
|
|
../common/libor-event.a \
|
2010-03-09 05:24:24 +01:00
|
|
|
@TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ \
|
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@ $(levent_openssl_lib)
|
2009-08-14 20:34:16 +02:00
|
|
|
|
2009-10-11 10:51:51 +02:00
|
|
|
noinst_HEADERS = tinytest.h tinytest_macros.h test.h
|
2009-08-14 20:34:16 +02:00
|
|
|
|
|
|
|
|