diff options
author | Mark Brown <broonie@kernel.org> | 2022-08-04 17:05:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-04 17:05:08 +0100 |
commit | 2f3cfefa42e7451317f73739999debb02dfd4ad2 (patch) | |
tree | 70c640abcf619893803d58e46fcaff03c0f104e2 | |
parent | 1c8ac5bebf40731ea1075659e56befc43b81bc86 (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) |