diff options
author | John Stultz <john.stultz@linaro.org> | 2015-03-11 17:39:57 -0700 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-03-12 13:22:12 -0600 |
commit | 03438212d0b0ea2cf201e921c9056f683c624ffb (patch) | |
tree | be2ce49d45037a353a3bd7281cc95e1179c1e6b3 /tools/testing/selftests/timers/Makefile | |
parent | 9eccca0843205f87c00404b663188b88eb248051 (diff) | |
download | linux-03438212d0b0ea2cf201e921c9056f683c624ffb.tar.gz linux-03438212d0b0ea2cf201e921c9056f683c624ffb.tar.bz2 linux-03438212d0b0ea2cf201e921c9056f683c624ffb.zip |
selftests/timers: Cleanup Makefile to make it easier to add future tests
Try to streamline the makefile so its easier to add timer/timekeeping
tests.
Also adds support for the CROSS_COMPILE variable.
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Tested-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/timers/Makefile')
-rw-r--r-- | tools/testing/selftests/timers/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile index eb2859f4ad21..e65c543ad03c 100644 --- a/tools/testing/selftests/timers/Makefile +++ b/tools/testing/selftests/timers/Makefile @@ -1,8 +1,13 @@ -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 + +all: ${bins} run_tests: all ./posix_timers clean: - rm -f ./posix_timers + rm -f ${bins} |