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.c \
|
|
|
|
test_addr.c \
|
2010-11-11 20:22:48 +01:00
|
|
|
test_containers.c \
|
2009-09-22 19:29:55 +02:00
|
|
|
test_crypto.c \
|
2010-11-11 20:22:48 +01:00
|
|
|
test_data.c \
|
2009-09-22 19:49:09 +02:00
|
|
|
test_dir.c \
|
2010-10-07 21:28:54 +02:00
|
|
|
test_microdesc.c \
|
2010-11-11 20:22:48 +01:00
|
|
|
test_util.c \
|
2009-09-22 19:29:55 +02:00
|
|
|
tinytest.c
|
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@ \
|
2011-05-06 15:34:00 +02:00
|
|
|
@TOR_LIB_WS32@ @TOR_LIB_GDI@
|
2009-08-14 20:34:16 +02:00
|
|
|
|
2010-11-11 20:22:48 +01:00
|
|
|
noinst_HEADERS = \
|
|
|
|
tinytest.h \
|
|
|
|
tinytest_macros.h \
|
|
|
|
test.h
|
2009-08-14 20:34:16 +02:00
|
|
|
|
|
|
|
|