include.am 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. bin_PROGRAMS+= src/tools/tor-resolve src/tools/tor-print-ed-signing-cert
  2. if COVERAGE_ENABLED
  3. noinst_PROGRAMS+= src/tools/tor-cov-resolve
  4. endif
  5. src_tools_tor_resolve_SOURCES = src/tools/tor-resolve.c
  6. src_tools_tor_resolve_LDFLAGS =
  7. src_tools_tor_resolve_LDADD = \
  8. $(TOR_UTIL_LIBS) \
  9. $(rust_ldadd) \
  10. @TOR_LIB_MATH@ @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_USERENV@
  11. if COVERAGE_ENABLED
  12. src_tools_tor_cov_resolve_SOURCES = src/tools/tor-resolve.c
  13. src_tools_tor_cov_resolve_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  14. src_tools_tor_cov_resolve_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  15. src_tools_tor_cov_resolve_LDADD = \
  16. $(TOR_UTIL_TESTING_LIBS) \
  17. @TOR_LIB_MATH@ @TOR_LIB_WS32@
  18. endif
  19. if USE_NSS
  20. # ...
  21. else
  22. bin_PROGRAMS += src/tools/tor-gencert
  23. src_tools_tor_gencert_SOURCES = src/tools/tor-gencert.c
  24. src_tools_tor_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB)
  25. src_tools_tor_gencert_LDADD = \
  26. $(TOR_CRYPTO_LIBS) \
  27. $(TOR_UTIL_LIBS) \
  28. $(rust_ldadd) \
  29. @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ $(TOR_LIBS_CRYPTLIB) \
  30. @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @TOR_LIB_USERENV@ @CURVE25519_LIBS@
  31. endif
  32. src_tools_tor_print_ed_signing_cert_SOURCES = src/tools/tor-print-ed-signing-cert.c
  33. src_tools_tor_print_ed_signing_cert_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@
  34. src_tools_tor_print_ed_signing_cert_LDADD = \
  35. src/trunnel/libor-trunnel.a \
  36. $(TOR_CRYPTO_LIBS) \
  37. $(TOR_UTIL_LIBS) \
  38. @TOR_LIB_MATH@ $(TOR_LIBS_CRYPTLIB) \
  39. @TOR_LIB_WS32@ @TOR_LIB_USERENV@
  40. if USE_NSS
  41. # ...
  42. else
  43. if COVERAGE_ENABLED
  44. noinst_PROGRAMS += src/tools/tor-cov-gencert
  45. src_tools_tor_cov_gencert_SOURCES = src/tools/tor-gencert.c
  46. src_tools_tor_cov_gencert_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  47. src_tools_tor_cov_gencert_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
  48. src_tools_tor_cov_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ $(TOR_LDFLAGS_CRYPTLIB)
  49. src_tools_tor_cov_gencert_LDADD = \
  50. $(TOR_CRYPTO_TESTING_LIBS) \
  51. $(TOR_UTIL_TESTING_LIBS) \
  52. @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ $(TOR_LIBS_CRYPTLIB) \
  53. @TOR_LIB_WS32@ @TOR_LIB_IPHLPAPI@ @TOR_LIB_GDI@ @CURVE25519_LIBS@
  54. endif
  55. endif
  56. if BUILD_LIBTORRUNNER
  57. noinst_LIBRARIES += src/tools/libtorrunner.a
  58. src_tools_libtorrunner_a_SOURCES = \
  59. src/tools/tor_runner.c \
  60. src/feature/api/tor_api.c
  61. endif