diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2017-12-20 18:45:43 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2017-12-20 18:45:43 +0100 |
commit | 0951e9a056dc791cd7a46014f1178b153829c48a (patch) | |
tree | af236deff67e8dd92e39794b914186acce8c481b /src | |
parent | 3c53dbf634c8647c6d66aec50e06a26098e4c657 (diff) |
ptunnel-ng:
* autoconf mingw dlltool check
* build import library and link ptunnel-ng.exe against it
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 8aaa52a..6ded388 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,9 +3,13 @@ man8_MANS = ptunnel-ng.8 ptunnel_ng_CFLAGS = -Wall ptunnel_ng_LDADD = +CLEANFILES = +EXTTRA_DIST = + if HAVE_PCAP ptunnel_ng_CFLAGS += -DHAVE_PCAP=1 endif + if HAVE_SELINUX ptunnel_ng_CFLAGS += -DHAVE_SELINUX=1 endif @@ -18,3 +22,17 @@ ptunnel_ng_SOURCES = \ pkt.c \ pdesc.c \ ptunnel.c + +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 -DHAVE_PCAP=1 +ptunnel_ng_LDADD += $(wpcap_IMP) +ptunnel_ng_SOURCES += $(wpcap_DEF) + +$(wpcap_IMP): + @DLLTOOL@ -k -l $(wpcap_IMP) --def $(wpcap_DEF) + +CLEANFILES += $(wpcap_IMP) +EXTTRA_DIST += $(wpcap_DEF) +endif |