Makefile 910 B

1234567891011121314151617181920212223242526272829303132
  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. INCLUDES := -I../include -I../../ $(KHDR_INCLUDES)
  5. CFLAGS := $(CFLAGS) -g -O2 -Wall -pthread -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 $(INCLUDES) $(KHDR_INCLUDES) -DLIBNUMA_VER_$(LIBNUMA_TEST)=1
  6. LDLIBS := -lpthread -lrt -lnuma
  7. LOCAL_HDRS := \
  8. ../include/futextest.h \
  9. ../include/atomic.h
  10. TEST_GEN_PROGS := \
  11. futex_wait_timeout \
  12. futex_wait_wouldblock \
  13. futex_requeue_pi \
  14. futex_requeue_pi_signal_restart \
  15. futex_requeue_pi_mismatched_ops \
  16. futex_wait_uninitialized_heap \
  17. futex_wait_private_mapped_file \
  18. futex_wait \
  19. futex_requeue \
  20. futex_priv_hash \
  21. futex_numa_mpol \
  22. futex_waitv \
  23. futex_numa \
  24. robust_list
  25. TEST_PROGS := run.sh
  26. top_srcdir = ../../../../..
  27. DEFAULT_INSTALL_HDR_PATH := 1
  28. include ../../lib.mk