1INCLUDES := -I../include 2CFLAGS := $(CFLAGS) -g -O2 -Wall -D_GNU_SOURCE -pthread $(INCLUDES) 3LDFLAGS := $(LDFLAGS) -pthread -lrt 4 5HEADERS := ../include/futextest.h 6TARGETS := \ 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.PHONY: all clean 16all: $(TARGETS) 17 18$(TARGETS): $(HEADERS) 19 20run_tests: all 21 ./run.sh 22 23clean: 24 rm -f $(TARGETS) 25