1# SPDX-License-Identifier: GPL-2.0
2INCLUDES := -I../include -I../../ -I../../../../../usr/include/ \
3	-I$(KBUILD_OUTPUT)/kselftest/usr/include
4CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES)
5LDLIBS := -lpthread -lrt
6
7HEADERS := \
8	../include/futextest.h \
9	../include/atomic.h \
10	../include/logging.h
11TEST_GEN_FILES := \
12	futex_wait_timeout \
13	futex_wait_wouldblock \
14	futex_requeue_pi \
15	futex_requeue_pi_signal_restart \
16	futex_requeue_pi_mismatched_ops \
17	futex_wait_uninitialized_heap \
18	futex_wait_private_mapped_file \
19	futex_wait \
20	futex_requeue \
21	futex_waitv
22
23TEST_PROGS := run.sh
24
25top_srcdir = ../../../../..
26KSFT_KHDR_INSTALL := 1
27include ../../lib.mk
28
29$(TEST_GEN_FILES): $(HEADERS)
30