| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
PKG_CONFIG ?= pkg-config |
| 3 |
LIBNUMA_TEST = $(shell sh -c "$(PKG_CONFIG) numa --atleast-version 2.0.16 > /dev/null 2>&1 && echo SUFFICIENT || echo NO") |
| 4 |
|
| 5 |
INCLUDES := -I../include -I../../ $(KHDR_INCLUDES) |
| 6 |
CFLAGS := $(CFLAGS) -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 $(INCLUDES) $(KHDR_INCLUDES) -DLIBNUMA_VER_$(LIBNUMA_TEST)=1 |
| 7 |
LDLIBS := -lpthread -lrt -lnuma |
| 8 |
|
| 9 |
LOCAL_HDRS := \ |
| 10 |
../include/futextest.h \ |
| 11 |
../include/atomic.h |
| 12 |
TEST_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 |
robust_list |
| 27 |
|
| 28 |
TEST_PROGS := run.sh |
| 29 |
|
| 30 |
top_srcdir = ../../../../.. |
| 31 |
DEFAULT_INSTALL_HDR_PATH := 1 |
| 32 |
include ../../lib.mk |