Debian Codegraph @

tools/testing/selftests/futex/functional/Makefile

raw symbols SCIP
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.18 > /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
8 ifeq ($(LIBNUMA_TEST),SUFFICIENT)
9 LDLIBS += -lnuma
10 endif
11
12 LOCAL_HDRS := \
13 ../include/futextest.h \
14 ../include/atomic.h
15 TEST_GEN_PROGS := \
16 futex_wait_timeout \
17 futex_wait_wouldblock \
18 futex_requeue_pi \
19 futex_requeue_pi_signal_restart \
20 futex_requeue_pi_mismatched_ops \
21 futex_wait_uninitialized_heap \
22 futex_wait_private_mapped_file \
23 futex_wait \
24 futex_requeue \
25 futex_priv_hash \
26 futex_numa_mpol \
27 futex_waitv \
28 futex_numa \
29 robust_list
30
31 TEST_PROGS := run.sh
32
33 top_srcdir = ../../../../..
34 DEFAULT_INSTALL_HDR_PATH := 1
35 include ../../lib.mk