|
@@ -7,15 +7,14 @@
|
|
#
|
|
#
|
|
|
|
|
|
# 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=1
|
|
|
|
|
|
+IPT_RTPPROXY_IPTABLES_API=0
|
|
|
|
|
|
# define path to netfilter/iptables source directory
|
|
# define path to netfilter/iptables source directory
|
|
-#iptdir = ~/iptables
|
|
|
|
-iptdir = /root/netfilter-RTPPROXY-v2
|
|
|
|
-#iptdir=/mnt/home/tmandys/work/tma/netfilter-RTPPROXY-v2
|
|
|
|
-#iptdir=$(BUILDHOME)/apps/iptrtpproxy-v2
|
|
|
|
|
|
+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=/root/iptables-1.4.2/include
|
|
|
|
|
|
+#kerneldir=~/iptables-1.4.2/include
|
|
|
|
+iptdir = /root/netfilter-RTPPROXY-v2
|
|
|
|
+xtablesmoduledir=/lib/xtables
|
|
|
|
|
|
include ../../Makefile.defs
|
|
include ../../Makefile.defs
|
|
auto_gen=
|
|
auto_gen=
|
|
@@ -24,7 +23,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 $(iptdir)/libiptc -L $(iptdir)/iptables/extensions -lipt_RTPPROXY
|
|
|
|
|
|
+LIBS = -L $(xtablesmoduledir) -L $(iptdir)/libiptc -L $(iptdir)/iptables/extensions -lipt_RTPPROXY
|
|
|
|
+#LIBS+=-L /lib/xtables
|
|
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)
|