summaryrefslogtreecommitdiffstats
path: root/kernel/net/netfilter/ipset/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/net/netfilter/ipset/Makefile')
-rw-r--r--kernel/net/netfilter/ipset/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/net/netfilter/ipset/Makefile b/kernel/net/netfilter/ipset/Makefile
new file mode 100644
index 0000000..e983a60
--- /dev/null
+++ b/kernel/net/netfilter/ipset/Makefile
@@ -0,0 +1,11 @@
+ifndef IP_SET_MAX
+$(error "Use the toplevel Makefile, not the ones in the kernel/ subdirectory")
+endif
+
+ifneq ($(KERNELRELEASE),)
+include Kbuild
+else
+KERNELDIR := /lib/modules/`uname -r`/build
+all::
+ $(MAKE) -C $(KERNELDIR) M=`pwd` $@
+endif