diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8d4787a..b39d89e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,12 +38,15 @@ ptunnel_ng_SOURCES = \ if IS_WINDOWS wpcap_DEF = $(abs_srcdir)/win32/WPCAP.DEF wpcap_IMP = $(abs_srcdir)/win32/libwpcap_implib.a -ptunnel_ng_CFLAGS += -I$(abs_srcdir)/win32/includes +ptunnel_ng_CFLAGS += -I$(abs_srcdir)/win32/includes -DHAVE_PCAP=1 +if HAVE_NPCAP +ptunnel_ng_CFLAGS += -DHAVE_NPCAP=1 +endif ptunnel_ng_LDADD += $(wpcap_IMP) ptunnel_ng_SOURCES += $(wpcap_DEF) $(wpcap_IMP): - @DLLTOOL@ -k -l $(wpcap_IMP) --def $(wpcap_DEF) + @DLLTOOL@ -k -y $(wpcap_IMP) --def $(wpcap_DEF) CLEANFILES += $(wpcap_IMP) EXTTRA_DIST += $(wpcap_DEF) |