Makefile.am 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. bin_PROGRAMS = ptunnel-ng
  2. man8_MANS = ptunnel-ng.8
  3. ptunnel_ng_CFLAGS = -Wall
  4. ptunnel_ng_LDADD =
  5. CLEANFILES =
  6. EXTTRA_DIST =
  7. if HAVE_PCAP
  8. ptunnel_ng_CFLAGS += -DHAVE_PCAP=1
  9. endif
  10. if ENABLE_SHA512
  11. ptunnel_ng_CFLAGS += -DENABLE_SHA512=1
  12. endif
  13. if HAVE_SELINUX
  14. ptunnel_ng_CFLAGS += -DHAVE_SELINUX=1
  15. endif
  16. if HAVE_ICMPFILTER
  17. ptunnel_ng_CFLAGS += -DHAVE_ICMPFILTER=1
  18. endif
  19. if HAVE_ARC4RANDOM
  20. ptunnel_ng_CFLAGS += -DHAVE_ARC4RANDOM=1
  21. endif
  22. if USE_CUSTOMRNG
  23. ptunnel_ng_CFLAGS += -DUSE_CUSTOMRNG=1
  24. endif
  25. if DISABLE_ASSERTS
  26. ptunnel_ng_CFLAGS += -DNDEBUG=1
  27. endif
  28. if ENABLE_SANITIZER
  29. ptunnel_ng_CFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=undefined
  30. endif
  31. ptunnel_ng_SOURCES = \
  32. md5.c \
  33. challenge.c \
  34. options.c \
  35. utils.c \
  36. pkt.c \
  37. pdesc.c \
  38. ptunnel.c
  39. if IS_WINDOWS
  40. wpcap_DEF = $(srcdir)/win32/WPCAP.DEF
  41. wpcap_IMP = $(srcdir)/win32/libwpcap_implib.a
  42. ptunnel_ng_CFLAGS += -I$(srcdir)/win32/includes -DHAVE_PCAP=1
  43. if HAVE_NPCAP
  44. ptunnel_ng_CFLAGS += -DHAVE_NPCAP=1
  45. endif
  46. ptunnel_ng_LDADD += $(wpcap_IMP)
  47. ptunnel_ng_SOURCES += $(wpcap_DEF)
  48. $(wpcap_IMP):
  49. @DLLTOOL@ -k -y $(wpcap_IMP) --def $(wpcap_DEF)
  50. CLEANFILES += $(wpcap_IMP)
  51. EXTTRA_DIST += $(wpcap_DEF)
  52. endif