1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 # 2 # 3 # First run: make -C ../../../.. headers_insta 3 # First run: make -C ../../../.. headers_install 4 4 5 CFLAGS += -Wall -O2 $(KHDR_INCLUDES) 5 CFLAGS += -Wall -O2 $(KHDR_INCLUDES) 6 6 7 LOCAL_HDRS += common.h 7 LOCAL_HDRS += common.h 8 8 9 src_test := $(wildcard *_test.c) 9 src_test := $(wildcard *_test.c) 10 10 11 TEST_GEN_PROGS := $(src_test:.c=) 11 TEST_GEN_PROGS := $(src_test:.c=) 12 12 13 TEST_GEN_PROGS_EXTENDED := true 13 TEST_GEN_PROGS_EXTENDED := true 14 14 15 # Short targets: 15 # Short targets: 16 $(TEST_GEN_PROGS): LDLIBS += -lcap 16 $(TEST_GEN_PROGS): LDLIBS += -lcap 17 $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 17 $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 18 18 19 include ../lib.mk 19 include ../lib.mk 20 20 21 # Targets with $(OUTPUT)/ prefix: 21 # Targets with $(OUTPUT)/ prefix: 22 $(TEST_GEN_PROGS): LDLIBS += -lcap 22 $(TEST_GEN_PROGS): LDLIBS += -lcap 23 $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 23 $(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.