| 1 |
|
| 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 | ../include/futex_thread.h
|
| 16 | TEST_GEN_PROGS := \
|
| 17 | futex_wait_timeout \
|
| 18 | futex_wait_wouldblock \
|
| 19 | futex_requeue_pi \
|
| 20 | futex_requeue_pi_signal_restart \
|
| 21 | futex_requeue_pi_mismatched_ops \
|
| 22 | futex_wait_uninitialized_heap \
|
| 23 | futex_wait_private_mapped_file \
|
| 24 | futex_wait \
|
| 25 | futex_requeue \
|
| 26 | futex_priv_hash \
|
| 27 | futex_numa_mpol \
|
| 28 | futex_waitv \
|
| 29 | futex_numa \
|
| 30 | robust_list \
|
| 31 | futex_lock_pi_exiting
|
| 32 |
|
| 33 | TEST_PROGS := run.sh
|
| 34 |
|
| 35 | top_srcdir = ../../../../..
|
| 36 | DEFAULT_INSTALL_HDR_PATH := 1
|
| 37 | include ../../lib.mk
|