瀏覽代碼

iptrtpproxy: makefile LIBS update

Look for libipt_RTPPROXY first under /lib/xtables (default install
dir) and if not found in $(iptdir)/extensions (compile dir).
Andrei Pelinescu-Onciul 15 年之前
父節點
當前提交
bf7b4ffd6c
共有 1 個文件被更改,包括 8 次插入5 次删除
  1. 8 5
      modules/iptrtpproxy/Makefile

+ 8 - 5
modules/iptrtpproxy/Makefile

@@ -6,14 +6,17 @@
 # WARNING: do not run this directly, it should be run by the master Makefile
 #
 
-# define path to netfilter/iptables directory
-iptdir = ~/work/netfilter/iptables
+# define path to netfilter/iptables source directory
+iptdir = ~/iptables
 include ../../Makefile.defs
 auto_gen=
 NAME=iptrtpproxy.so
-LIBS += $(iptdir)/iptables.o -L $(iptdir)/libiptc -liptc \
-		-L $(iptdir)/extensions -lext
-INCLUDES = -I $(iptdir)/include
+#LIBS += $(iptdir)/iptables.o -L $(iptdir)/libiptc -liptc \
+#		-L $(iptdir)/extensions -lext
+# look for libipt_RTPPROXY first under /lib/xtables (default install dir)
+# and if not found in $(iptdir)/extensions (compile dir)
+LIBS = -L/lib/xtables -L$(iptdir)/extensions -lipt_RTPPROXY -ldl
+INCLUDES = -I$(iptdir)/include
 
 DEFS+=-DSER_MOD_INTERFACE