|
@@ -7,13 +7,12 @@
|
|
#
|
|
#
|
|
|
|
|
|
# select if xtables.h (=0) or iptables.h (=1) header files are installed
|
|
# select if xtables.h (=0) or iptables.h (=1) header files are installed
|
|
-IPT_RTPPROXY_IPTABLES_API=0
|
|
|
|
|
|
+IPT_RTPPROXY_IPTABLES_API=1
|
|
|
|
|
|
# define path to netfilter/iptables source directory
|
|
# define path to netfilter/iptables source directory
|
|
iptdir = ~/iptables
|
|
iptdir = ~/iptables
|
|
#kerneldir=/usr/src/kernels/2.6.18-1.2849prerel3.3.0_63.1.0-i686/include
|
|
#kerneldir=/usr/src/kernels/2.6.18-1.2849prerel3.3.0_63.1.0-i686/include
|
|
#kerneldir=~/iptables-1.4.2/include
|
|
#kerneldir=~/iptables-1.4.2/include
|
|
-iptdir = /root/netfilter-RTPPROXY-v2
|
|
|
|
xtablesmoduledir=/lib/xtables
|
|
xtablesmoduledir=/lib/xtables
|
|
|
|
|
|
include ../../Makefile.defs
|
|
include ../../Makefile.defs
|
|
@@ -23,8 +22,8 @@ NAME=iptrtpproxy.so
|
|
# -L $(iptdir)/extensions -lext
|
|
# -L $(iptdir)/extensions -lext
|
|
# look for libipt_RTPPROXY first under /lib/xtables (default install dir)
|
|
# look for libipt_RTPPROXY first under /lib/xtables (default install dir)
|
|
# and if not found in $(iptdir)/extensions (compile dir)
|
|
# and if not found in $(iptdir)/extensions (compile dir)
|
|
-LIBS = -L $(xtablesmoduledir) -L $(iptdir)/libiptc -L $(iptdir)/iptables/extensions -lipt_RTPPROXY
|
|
|
|
-#LIBS+=-L /lib/xtables
|
|
|
|
|
|
+LIBS = -L $(iptdir)/libiptc -L $(iptdir)/iptables/extensions -lipt_RTPPROXY
|
|
|
|
+LIBS+= -L $(xtablesmoduledir)
|
|
INCLUDES = -I $(iptdir)/linux-2.6/include -I $(kerneldir) -I $(iptdir)/iptables/include
|
|
INCLUDES = -I $(iptdir)/linux-2.6/include -I $(kerneldir) -I $(iptdir)/iptables/include
|
|
|
|
|
|
ifeq ($(IPT_RTPPROXY_IPTABLES_API),1)
|
|
ifeq ($(IPT_RTPPROXY_IPTABLES_API),1)
|