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 12top_srcdir := ../../../.. 13include ../lib.mk 14 15khdr_dir = $(top_srcdir)/usr/include 16 17$(OUTPUT)/true: true.c 18 $(LINK.c) $< $(LDLIBS) -o $@ -static 19 20$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h 21 $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir) 22