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 14$(OUTPUT)/true: true.c 15 $(LINK.c) $< $(LDLIBS) -o $@ -static 16 17$(OUTPUT)/%_test: %_test.c ../kselftest_harness.h common.h 18 $(LINK.c) $< $(LDLIBS) -o $@ -lcap 19