fold in more changes files
[tor.git] / src / test / Makefile.am
blob31a464ee7ad2ba7edd4829f462de89c2d9011b98
1 TESTS = test
3 noinst_PROGRAMS = test test-child bench
5 AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
6         -DLOCALSTATEDIR="\"$(localstatedir)\"" \
7         -DBINDIR="\"$(bindir)\""               \
8         -I"$(top_srcdir)/src/or"
10 # -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
11 # This seems to matter nowhere but on Windows, but I assure you that it
12 # matters a lot there, and is quite hard to debug if you forget to do it.
14 test_SOURCES = \
15         test.c \
16         test_addr.c \
17         test_containers.c \
18         test_crypto.c \
19         test_data.c \
20         test_dir.c \
21         test_microdesc.c \
22         test_pt.c \
23         test_util.c \
24         test_config.c \
25         tinytest.c
27 bench_SOURCES = \
28         bench.c
30 test_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
31         @TOR_LDFLAGS_libevent@
32 test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
33         ../common/libor-event.a \
34         @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
35         @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
37 bench_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \
38         @TOR_LDFLAGS_libevent@
39 bench_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \
40         ../common/libor-event.a \
41         @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ \
42         @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@
44 noinst_HEADERS = \
45         tinytest.h \
46         tinytest_macros.h \
47         test.h