1CC = $(CROSS_COMPILE)gcc 2BUILD_FLAGS = -DKTEST 3CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS) 4LDFLAGS += -lrt -lpthread 5bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \ 6 set-timer-lat threadtest mqueue-lat valid-adjtimex 7 8all: ${bins} 9 10# these are all "safe" tests that don't modify 11# system time or require escalated privledges 12run_tests: all 13 ./posix_timers 14 ./nanosleep 15 ./nsleep-lat 16 ./set-timer-lat 17 ./mqueue-lat 18 ./inconsistency-check 19 ./raw_skew 20 ./threadtest -t 30 -n 8 21 22# these tests require escalated privledges 23# and may modify the system time or trigger 24# other behavior like suspend 25run_destructive_tests: all 26 ./valid-adjtimex 27 28clean: 29 rm -f ${bins} 30