Update geoip files to match ipfire location db, 2023/07/12.
[tor.git] / src / tools / include.am
blob86cd0acbfd8def6c45af479aa92570087995abe5
1 bin_PROGRAMS+= src/tools/tor-resolve src/tools/tor-print-ed-signing-cert
3 if COVERAGE_ENABLED
4 noinst_PROGRAMS+= src/tools/tor-cov-resolve
5 endif
7 src_tools_tor_resolve_SOURCES = src/tools/tor-resolve.c
8 src_tools_tor_resolve_LDFLAGS = @TOR_LDFLAGS_openssl@
9 src_tools_tor_resolve_LDADD = \
10         src/trunnel/libor-trunnel.a \
11         $(TOR_UTIL_LIBS) \
12         $(TOR_CRYPTO_LIBS) $(TOR_LIBS_CRYPTLIB)\
13         @TOR_LIB_MATH@ @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_SHLWAPI@ @TOR_LIB_USERENV@
15 if COVERAGE_ENABLED
16 src_tools_tor_cov_resolve_SOURCES = src/tools/tor-resolve.c
17 src_tools_tor_cov_resolve_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
18 src_tools_tor_cov_resolve_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
19 src_tools_tor_cov_resolve_LDFLAGS = @TOR_LDFLAGS_openssl@
20 src_tools_tor_cov_resolve_LDADD = \
21         src/trunnel/libor-trunnel.a \
22         $(TOR_UTIL_TESTING_LIBS) \
23         $(TOR_CRYPTO_TESTING_LIBS) $(TOR_LIBS_CRYPTLIB) \
24         @TOR_LIB_MATH@ @TOR_LIB_WS32@
25 endif
27 if USE_NSS
28 # ...
29 else
30 bin_PROGRAMS += src/tools/tor-gencert
31 src_tools_tor_gencert_SOURCES = src/tools/tor-gencert.c
32 src_tools_tor_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB)
33 src_tools_tor_gencert_LDADD = \
34         $(TOR_CRYPTO_LIBS) \
35         $(TOR_UTIL_LIBS) \
36         @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ $(TOR_LIBS_CRYPTLIB) \
37         @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_SHLWAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ @CURVE25519_LIBS@
38 endif
40 src_tools_tor_print_ed_signing_cert_SOURCES = src/tools/tor-print-ed-signing-cert.c
41 src_tools_tor_print_ed_signing_cert_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@
42 src_tools_tor_print_ed_signing_cert_LDADD = \
43         src/trunnel/libor-trunnel.a \
44         $(TOR_CRYPTO_LIBS) \
45         $(TOR_UTIL_LIBS) \
46         @TOR_LIB_MATH@ $(TOR_LIBS_CRYPTLIB) \
47         @TOR_LIB_WS32@ @TOR_LIB_USERENV@ @TOR_LIB_SHLWAPI@ @TOR_LIB_GDI@
49 if USE_NSS
50 # ...
51 else
52 if COVERAGE_ENABLED
53 noinst_PROGRAMS += src/tools/tor-cov-gencert
54 src_tools_tor_cov_gencert_SOURCES = src/tools/tor-gencert.c
55 src_tools_tor_cov_gencert_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
56 src_tools_tor_cov_gencert_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
57 src_tools_tor_cov_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB)
58 src_tools_tor_cov_gencert_LDADD = \
59     $(TOR_CRYPTO_TESTING_LIBS) \
60     $(TOR_UTIL_TESTING_LIBS) \
61     @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ $(TOR_LIBS_CRYPTLIB) \
62     @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_SHLWAPI@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
63 endif
64 endif
66 if BUILD_LIBTORRUNNER
67 noinst_LIBRARIES += src/tools/libtorrunner.a
68 src_tools_libtorrunner_a_SOURCES = \
69         src/tools/tor_runner.c \
70         src/feature/api/tor_api.c
71 endif