diff options
author | Mark Brown <broonie@kernel.org> | 2022-08-05 15:40:40 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-05 15:40:40 +0100 |
commit | a987b8413137eb54aa5e7829d29818b2b27ff00b (patch) | |
tree | 043b2653c77ac4cd9e1b8d80852e3e4c7674cb9d | |
parent | cc5e2a8866386cdf19b161711ed66a31cea144b8 (diff) | |
parent | b1d34b1375f97fb1e67959d863e0e335bf3d2069 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git
-rw-r--r-- | tools/testing/selftests/landlock/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/testing/selftests/landlock/Makefile b/tools/testing/selftests/landlock/Makefile index a6959df28eb0..02868ac3bc71 100644 --- a/tools/testing/selftests/landlock/Makefile +++ b/tools/testing/selftests/landlock/Makefile @@ -9,10 +9,13 @@ TEST_GEN_PROGS := $(src_test:.c=) TEST_GEN_PROGS_EXTENDED := true OVERRIDE_TARGETS := 1 +top_srcdir := ../../../.. include ../lib.mk +khdr_dir = $(top_srcdir)/usr/include + $(OUTPUT)/true: true.c $(LINK.c) $< $(LDLIBS) -o $@ -static -$(OUTPUT)/%_test: %_test.c ../kselftest_harness.h common.h - $(LINK.c) $< $(LDLIBS) -o $@ -lcap +$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h + $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir) |