Makefile.am 900 Bytes
Newer Older
1
2
3
4
5
6
if USE_FW_HELPER
bin_PROGRAMS = tor-fw-helper
else
bin_PROGRAMS =
endif

7
8
9
10
tor_fw_helper_SOURCES = \
	tor-fw-helper.c \
	tor-fw-helper-natpmp.c \
	tor-fw-helper-upnp.c
11
noinst_HEADERS = \
12
13
14
	tor-fw-helper.h \
	tor-fw-helper-natpmp.h \
	tor-fw-helper-upnp.h
15
16
17
18
19
20
21
22
23
24
25
26
27

if NAT_PMP
nat_pmp_ldflags = @TOR_LDFLAGS_libnatpmp@
nat_pmp_ldadd  = -lnatpmp
nat_pmp_cppflags = @TOR_CPPFLAGS_libnatpmp@
else
nat_pmp_ldflags =
nat_pmp_ldadd  =
nat_pmp_cppflags =
endif

if MINIUPNPC
miniupnpc_ldflags = @TOR_LDFLAGS_libminiupnpc@
28
miniupnpc_ldadd = -lminiupnpc -lm @TOR_LIB_IPHLPAPI@
29
30
31
32
33
34
35
36
miniupnpc_cppflags = @TOR_CPPFLAGS_libminiupnpc@
else
miniupnpc_ldflags =
miniupnpc_ldadd =
miniupnpc_cppflags =
endif

tor_fw_helper_LDFLAGS = $(nat_pmp_ldflags) $(miniupnpc_ldflags)
37
tor_fw_helper_LDADD = ../../common/libor.a $(nat_pmp_ldadd) $(miniupnpc_ldadd) @TOR_LIB_WS32@
38
tor_fw_helper_CPPFLAGS = $(nat_pmp_cppflags) $(miniupnpc_cppflags)