1# SPDX-License-Identifier: GPL-2.0 2# 3# First run: make -C ../../../.. headers_install 4 5CFLAGS += -Wall -O2 $(KHDR_INCLUDES) 6 7LOCAL_HDRS += common.h 8 9src_test := $(wildcard *_test.c) 10 11TEST_GEN_PROGS := $(src_test:.c=) 12 13TEST_GEN_PROGS_EXTENDED := true 14 15# Short targets: 16$(TEST_GEN_PROGS): LDLIBS += -lcap 17$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 18 19include ../lib.mk 20 21# Targets with $(OUTPUT)/ prefix: 22$(TEST_GEN_PROGS): LDLIBS += -lcap 23$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 24