1 # SPDX-License-Identifier: GPL-2.0 2 INCLUDES := -I../include -I../../ 3 CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) 4 LDFLAGS := $(LDFLAGS) -pthread -lrt 5 6 HEADERS := \ 7 ../include/futextest.h \ 8 ../include/atomic.h \ 9 ../include/logging.h 10 TEST_GEN_FILES := \ 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 19 TEST_PROGS := run.sh 20 21 include ../../lib.mk 22 23 $(TEST_GEN_FILES): $(HEADERS) 24