Makefile 1.0 KB

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