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