e53b675e32469e072976c6b27c0fd5a32ba16e9c
[cascardo/linux.git] / tools / testing / selftests / timers / Makefile
1 CC = $(CROSS_COMPILE)gcc
2 BUILD_FLAGS = -DKTEST
3 CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
4 LDFLAGS += -lrt -lpthread
5 bins = posix_timers nanosleep inconsistency-check nsleep-lat raw_skew \
6         set-timer-lat threadtest
7
8 all: ${bins}
9
10 run_tests: all
11         ./posix_timers
12         ./nanosleep
13         ./nsleep-lat
14         ./set-timer-lat
15         ./inconsistency-check
16         ./raw_skew
17         ./threadtest -t 30 -n 8
18 clean:
19         rm -f ${bins}