summaryrefslogtreecommitdiffstats
path: root/debian/rules.d/tools/lib/bpf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules.d/tools/lib/bpf')
-rw-r--r--debian/rules.d/tools/lib/bpf/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/rules.d/tools/lib/bpf/Makefile b/debian/rules.d/tools/lib/bpf/Makefile
new file mode 100644
index 000000000..bc454045d
--- /dev/null
+++ b/debian/rules.d/tools/lib/bpf/Makefile
@@ -0,0 +1,17 @@
+include $(top_rulesdir)/Makefile.inc
+
+DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+# Catch use of missing kernel APIs early
+CFLAGS += -Werror=implicit-function-declaration
+
+MAKE_BPF := +$(MAKE) -C $(top_srcdir)/$(OUTDIR) O=$(CURDIR)
+MAKE_BPF += prefix=/usr
+MAKE_BPF += libdir_relative=lib/$(DEB_HOST_MULTIARCH)
+MAKE_BPF += V=$(KBUILD_VERBOSE)
+
+all:
+ $(MAKE_BPF)
+
+install:
+ $(MAKE_BPF) install install_headers