1 # SPDX-License-Identifier: GPL-2.0
3 CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
5 src_test := $(wildcard *_test.c)
7 TEST_GEN_PROGS := $(src_test:.c=)
9 TEST_GEN_PROGS_EXTENDED := true
12 top_srcdir := ../../../..
15 khdr_dir = $(top_srcdir)/usr/include
17 $(OUTPUT)/true: true.c
18 $(LINK.c) $< $(LDLIBS) -o $@ -static
20 $(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h
21 $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir)