xref: /kernel/linux/linux-6.6/tools/testing/selftests/landlock/Makefile
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/selftests/landlock/
162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# First run: make -C ../../../.. headers_install
462306a36Sopenharmony_ci
562306a36Sopenharmony_ciCFLAGS += -Wall -O2 $(KHDR_INCLUDES)
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciLOCAL_HDRS += common.h
862306a36Sopenharmony_ci
962306a36Sopenharmony_cisrc_test := $(wildcard *_test.c)
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ciTEST_GEN_PROGS := $(src_test:.c=)
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciTEST_GEN_PROGS_EXTENDED := true
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci# Short targets:
1662306a36Sopenharmony_ci$(TEST_GEN_PROGS): LDLIBS += -lcap
1762306a36Sopenharmony_ci$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciinclude ../lib.mk
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci# Targets with $(OUTPUT)/ prefix:
2262306a36Sopenharmony_ci$(TEST_GEN_PROGS): LDLIBS += -lcap
2362306a36Sopenharmony_ci$(TEST_GEN_PROGS_EXTENDED): LDFLAGS += -static
24

Indexes created Thu Nov 07 10:32:03 CST 2024