selftests/timers: Add inconsistency-check test from timetests
[cascardo/linux.git] / tools / testing / selftests / timers / Makefile
index eb2859f..fcb7c2f 100644 (file)
@@ -1,8 +1,14 @@
-all:
-       gcc posix_timers.c -o posix_timers -lrt
+CC = $(CROSS_COMPILE)gcc
+BUILD_FLAGS = -DKTEST
+CFLAGS += -O3 -Wl,-no-as-needed -Wall $(BUILD_FLAGS)
+LDFLAGS += -lrt -lpthread
+bins = posix_timers nanosleep inconsistency-check
+
+all: ${bins}
 
 run_tests: all
        ./posix_timers
-
+       ./nanosleep
+       ./inconsistency-check
 clean:
-       rm -f ./posix_timers
+       rm -f ${bins}