X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=tools%2Ftesting%2Fselftests%2Ftimers%2FMakefile;h=fcb7c2fcafe57b49671d296ce12891b9b9157ec6;hb=ed3fe34a2a4e0c9f184a178c48acf20c7acf244e;hp=eb2859f4ad2113576831e5f8ee420cf514f5194d;hpb=5a9821321e0a61674fd5c4b5a9e95007d0e7e052;p=cascardo%2Flinux.git diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index eb2859f4ad21..fcb7c2fcafe5 100644 --- a/tools/testing/selftests/timers/Makefile +++ b/tools/testing/selftests/timers/Makefile @@ -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}