X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=tools%2Ftesting%2Fselftests%2Ftimers%2FMakefile;h=d0bfb2d007cf64e390955915284bee66603e86a2;hb=274d631e481504e347b491ddb5e18487b855aba5;hp=eb2859f4ad2113576831e5f8ee420cf514f5194d;hpb=9451ee2d17e6b4bfbc5871f3c86ea744581b0413;p=cascardo%2Flinux.git diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index eb2859f4ad21..d0bfb2d007cf 100644 --- a/tools/testing/selftests/timers/Makefile +++ b/tools/testing/selftests/timers/Makefile @@ -1,8 +1,20 @@ -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 nsleep-lat raw_skew \ + set-timer-lat threadtest mqueue-lat + +all: ${bins} run_tests: all ./posix_timers - + ./nanosleep + ./nsleep-lat + ./set-timer-lat + ./mqueue-lat + ./inconsistency-check + ./raw_skew + ./threadtest -t 30 -n 8 clean: - rm -f ./posix_timers + rm -f ${bins}