1 INCLUDES := -I../include -I../../ 2 CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) 3 LDFLAGS := $(LDFLAGS) -pthread -lrt 4 5 HEADERS := ../include/futextest.h 6 TARGETS := \ 7 futex_wait_timeout \ 8 futex_wait_wouldblock \ 9 futex_requeue_pi \ 10 futex_requeue_pi_signal_restart \ 11 futex_requeue_pi_mismatched_ops \ 12 futex_wait_uninitialized_heap \ 13 futex_wait_private_mapped_file 14 15 TEST_PROGS := $(TARGETS) run.sh 16 17 .PHONY: all clean 18 all: $(TARGETS) 19 20 $(TARGETS): $(HEADERS) 21 22 include ../../lib.mk 23 24 clean: 25 rm -f $(TARGETS) 26