## Process this file with automake to produce Makefile.in ACLOCAL_AMFLAGS = -I m4 include $(top_srcdir)/Make_global.am if ! WITH_KBUILDDIR KBUILD_OUTPUT=/lib/modules/`uname -r`/build else KBUILD_OUTPUT=$(KBUILDDIR) endif if ! WITH_MAXSETS IP_SET_MAX=256 else IP_SET_MAX=$(MAXSETS) endif SUBDIRS = include/libipset lib src modules_sparse: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter \ V=$V C=2 CF=-D__CHECK_ENDIAN__ \ IP_SET_MAX=$(IP_SET_MAX) KDIR=$$PWD/kernel modules else @echo Skipping kernel modules due to --with-kmod=no endif modules: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter V=$V \ IP_SET_MAX=$(IP_SET_MAX) KDIR=$$PWD/kernel modules else @echo Skipping kernel modules due to --with-kmod=no endif modules_install: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter \ KDIR=$$PWD/kernel modules_install else @echo Skipping kernel modules due to --with-kmod=no endif modules_clean: if WITH_KMOD ${MAKE} -C $(KBUILD_OUTPUT) M=$$PWD/kernel/net/netfilter \ KDIR=$$PWD/kernel clean else @echo Skipping kernel modules due to --with-kmod=no endif update_includes: ./update ip_set.h ./update ip_set_bitmap.h ./update ip_set_hash.h ./update ip_set_list.h tests: cd tests; ./runtest.sh cleanup_dirs := . include/libipset lib src tests tidy: distclean modules_clean rm -rf .deps $(foreach dir,$(cleanup_dirs),$(wildcard $(dir)/*~)) rm -rf aclocal.m4 autom4te.cache rm -rf config.* configure compile depcomp install-sh libtool ltmain.sh rm -rf Makefile Makefile.in lib/Makefile lib/Makefile.in src/Makefile src/Makefile.in rm -rf missing stamp-h1 m4/libtool.m4 m4/lt*.m4 rm -rf lib/ipset_settype_check lib/types_init.c find . -name '*~' -delete tarball: rm -Rf /tmp/ipset-${PACKAGE_VERSION}; pushd ${top_srcdir} && git archive --prefix=ipset-${PACKAGE_VERSION}/ HEAD | tar -C /tmp -x && popd; pushd /tmp/ipset-${PACKAGE_VERSION} && ./autogen.sh && popd; tar -C /tmp -cjf ipset-${PACKAGE_VERSION}.tar.bz2 --owner=root --group=root ipset-${PACKAGE_VERSION}/; rm -Rf /tmp/ipset-${PACKAGE_VERSION}; .PHONY: modules modules_instal modules_clean update_includes tests tarball DISTCHECK_CONFIGURE_FLAGS = --with-kmod=no