1# SPDX-License-Identifier: GPL-2.0 2 3CFLAGS += -Wall -O2 $(KHDR_INCLUDES) 4 5src_test := $(wildcard *_test.c) 6 7TEST_GEN_PROGS := $(src_test:.c=) 8 9TEST_GEN_PROGS_EXTENDED := true 10 11OVERRIDE_TARGETS := 1 12include ../lib.mk 13 14khdr_dir = $(top_srcdir)/usr/include 15 16$(khdr_dir)/linux/landlock.h: khdr 17 @: 18 19$(OUTPUT)/true: true.c 20 $(LINK.c) $< $(LDLIBS) -o $@ -static 21 22$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h 23 $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir) 24