Bläddra i källkod

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 år sedan
förälder
incheckning
bf7b4ffd6c
1 ändrade filer med 8 tillägg och 5 borttagningar
  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