| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
# |
| 3 |
# First run: make -C ../../../.. headers_install |
| 4 |
|
| 5 |
CFLAGS += -Wall -O2 $(KHDR_INCLUDES) |
| 6 |
|
| 7 |
LOCAL_HDRS += $(wildcard *.h) |
| 8 |
|
| 9 |
src_test := $(wildcard *_test.c) |
| 10 |
|
| 11 |
TEST_GEN_PROGS := $(src_test:.c=) |
| 12 |
TEST_GEN_PROGS += fs_bench |
| 13 |
|
| 14 |
TEST_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 |
|
| 24 |
include ../lib.mk |
| 25 |
|
| 26 |
# Targets with $(OUTPUT)/ prefix: |
| 27 |
$(TEST_GEN_PROGS): LDLIBS += -lcap -lpthread |
| 28 |
$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static |