blob: 5786a014002ed0ec1ee3be08373402cd8c11774c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
bin_PROGRAMS = ptunnel-ng
man8_MANS = ptunnel-ng.8
ptunnel_ng_CFLAGS = -Wall -Wextra
ptunnel_ng_LDADD =
CLEANFILES =
EXTTRA_DIST =
if HAVE_PCAP
ptunnel_ng_CFLAGS += -DHAVE_PCAP=1
endif
if ENABLE_SHA512
ptunnel_ng_CFLAGS += -DENABLE_SHA512=1
endif
if HAVE_SELINUX
ptunnel_ng_CFLAGS += -DHAVE_SELINUX=1
endif
if HAVE_ICMPFILTER
ptunnel_ng_CFLAGS += -DHAVE_ICMPFILTER=1
endif
if HAVE_ARC4RANDOM
ptunnel_ng_CFLAGS += -DHAVE_ARC4RANDOM=1
endif
if USE_CUSTOMRNG
ptunnel_ng_CFLAGS += -DUSE_CUSTOMRNG=1
endif
if DISABLE_ASSERTS
ptunnel_ng_CFLAGS += -DNDEBUG=1
endif
if ENABLE_SANITIZER
ptunnel_ng_CFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=undefined
endif
ptunnel_ng_SOURCES = \
md5.c \
challenge.c \
options.c \
utils.c \
pkt.c \
pdesc.c \
ptunnel.c
if IS_WINDOWS
wpcap_DEF = $(srcdir)/win32/WPCAP.DEF
wpcap_IMP = $(srcdir)/win32/libwpcap_implib.a
ptunnel_ng_CFLAGS += -I$(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 -y $(wpcap_IMP) --def $(wpcap_DEF)
CLEANFILES += $(wpcap_IMP)
EXTTRA_DIST += $(wpcap_DEF)
endif
|