aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 8d4787ae1fecbd1e159d3c85c7fb5e1a7106d7c8 (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
bin_PROGRAMS = ptunnel-ng
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

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

ptunnel_ng_SOURCES = \
	md5.c \
	challenge.c \
	options.c \
	utils.c \
	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
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