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