xref: /linux/tools/testing/selftests/futex/functional/Makefile (revision c574fb2ed7c96f87fc0e5295e910e646a7ee4dfa)
1# SPDX-License-Identifier: GPL-2.0
2PKG_CONFIG ?= pkg-config
3LIBNUMA_TEST = $(shell sh -c "$(PKG_CONFIG) numa --atleast-version 2.0.16 > /dev/null 2>&1 && echo SUFFICIENT || echo NO")
4
5INCLUDES := -I../include -I../../ $(KHDR_INCLUDES)
6CFLAGS := $(CFLAGS) -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 $(INCLUDES) $(KHDR_INCLUDES) -DLIBNUMA_VER_$(LIBNUMA_TEST)=1
7LDLIBS := -lpthread -lrt -lnuma
8
9LOCAL_HDRS := \
10	../include/futextest.h \
11	../include/atomic.h
12TEST_GEN_PROGS := \
13	futex_wait_timeout \
14	futex_wait_wouldblock \
15	futex_requeue_pi \
16	futex_requeue_pi_signal_restart \
17	futex_requeue_pi_mismatched_ops \
18	futex_wait_uninitialized_heap \
19	futex_wait_private_mapped_file \
20	futex_wait \
21	futex_requeue \
22	futex_priv_hash \
23	futex_numa_mpol \
24	futex_waitv \
25	futex_numa
26
27TEST_PROGS := run.sh
28
29top_srcdir = ../../../../..
30DEFAULT_INSTALL_HDR_PATH := 1
31include ../../lib.mk
32