Merge tag 'tty-6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
[platform/kernel/linux-rpi.git] / tools / testing / selftests / landlock / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2
3 CFLAGS += -Wall -O2 $(KHDR_INCLUDES)
4
5 src_test := $(wildcard *_test.c)
6
7 TEST_GEN_PROGS := $(src_test:.c=)
8
9 TEST_GEN_PROGS_EXTENDED := true
10
11 OVERRIDE_TARGETS := 1
12 top_srcdir := ../../../..
13 include ../lib.mk
14
15 khdr_dir = $(top_srcdir)/usr/include
16
17 $(OUTPUT)/true: true.c
18         $(LINK.c) $< $(LDLIBS) -o $@ -static
19
20 $(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h
21         $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir)