Makefile (008f05a72d32dcc14038801649ec67af765fcc3c) | Makefile (091873e47ef700e935aa80079b63929af599a0b2) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# First run: make -C ../../../.. headers_install 4 5CFLAGS += -Wall -O2 $(KHDR_INCLUDES) | 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 | 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 |
16# Static linking for short targets: | 15# Short targets: 16$(TEST_GEN_PROGS): LDLIBS += -lcap |
17$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 18 19include ../lib.mk 20 | 17$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static 18 19include ../lib.mk 20 |
21# Static linking for targets with $(OUTPUT)/ prefix: | 21# Targets with $(OUTPUT)/ prefix: 22$(TEST_GEN_PROGS): LDLIBS += -lcap |
22$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static | 23$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static |