Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # iprtpproxy module makefile
  3. #
  4. #
  5. # WARNING: do not run this directly, it should be run by the master Makefile
  6. #
  7. # select if xtables.h (=0) or iptables.h (=1) header files are installed
  8. IPT_RTPPROXY_IPTABLES_API=1
  9. # define path to netfilter/iptables source directory
  10. iptdir = ~/iptables
  11. #kerneldir=/usr/src/kernels/2.6.18-1.2849prerel3.3.0_63.1.0-i686/include
  12. #kerneldir=~/iptables-1.4.2/include
  13. xtablesmoduledir=/lib/xtables
  14. include ../../Makefile.defs
  15. auto_gen=
  16. NAME=iptrtpproxy.so
  17. #LIBS += $(iptdir)/iptables.o -L $(iptdir)/libiptc -liptc \
  18. # -L $(iptdir)/extensions -lext
  19. # look for libipt_RTPPROXY first under /lib/xtables (default install dir)
  20. # and if not found in $(iptdir)/extensions (compile dir)
  21. LIBS = -L $(iptdir)/libiptc -L $(iptdir)/iptables/extensions -lipt_RTPPROXY
  22. LIBS+= -L $(xtablesmoduledir)
  23. INCLUDES = -I $(iptdir)/linux-2.6/include -I $(kerneldir) -I $(iptdir)/iptables/include
  24. ifeq ($(IPT_RTPPROXY_IPTABLES_API),1)
  25. DEFS+= -DIPT_RTPPROXY_IPTABLES_API=1
  26. endif
  27. DEFS+=-DSER_MOD_INTERFACE
  28. include ../../Makefile.modules