Makefile.am 881 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. if USE_FW_HELPER
  2. bin_PROGRAMS = tor-fw-helper
  3. else
  4. bin_PROGRAMS =
  5. endif
  6. tor_fw_helper_SOURCES = \
  7. tor-fw-helper.c \
  8. tor-fw-helper-natpmp.c \
  9. tor-fw-helper-upnp.c
  10. noinst_HEADERS = \
  11. tor-fw-helper.h \
  12. tor-fw-helper-natpmp.h \
  13. tor-fw-helper-upnp.h
  14. if NAT_PMP
  15. nat_pmp_ldflags = @TOR_LDFLAGS_libnatpmp@
  16. nat_pmp_ldadd = -lnatpmp
  17. nat_pmp_cppflags = @TOR_CPPFLAGS_libnatpmp@
  18. else
  19. nat_pmp_ldflags =
  20. nat_pmp_ldadd =
  21. nat_pmp_cppflags =
  22. endif
  23. if MINIUPNPC
  24. miniupnpc_ldflags = @TOR_LDFLAGS_libminiupnpc@
  25. miniupnpc_ldadd = -lminiupnpc -lm
  26. miniupnpc_cppflags = @TOR_CPPFLAGS_libminiupnpc@
  27. else
  28. miniupnpc_ldflags =
  29. miniupnpc_ldadd =
  30. miniupnpc_cppflags =
  31. endif
  32. tor_fw_helper_LDFLAGS = $(nat_pmp_ldflags) $(miniupnpc_ldflags)
  33. tor_fw_helper_LDADD = $(nat_pmp_ldadd) $(miniupnpc_ldadd) ../../common/libor.a @TOR_LIB_WS32@
  34. tor_fw_helper_CPPFLAGS = $(nat_pmp_cppflags) $(miniupnpc_cppflags)