diff mbox

[1/7] selftests/timers: Cleanup Makefile to make it easier to add future tests

Message ID 1423118232-14096-2-git-send-email-john.stultz@linaro.org
State Superseded
Headers show

Commit Message

John Stultz Feb. 5, 2015, 6:37 a.m. UTC
Try to streamline the makefile so its easier to add timer/timekeeping
tests.

Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
---
 tools/testing/selftests/timers/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Comments

John Stultz Feb. 5, 2015, 6:39 a.m. UTC | #1
On Wed, Feb 4, 2015 at 10:37 PM, John Stultz <john.stultz@linaro.org> wrote:
> Try to streamline the makefile so its easier to add timer/timekeeping
> tests.
>
> Cc: Shuah Khan <shuahkh@osg.samsung.com>

Drat.. I forgot to refresh the patchset after adding to the CC list.
Hopefully folks can/will find the thread, but I'll resend next week
sometime if I don't hear any feedback.

thanks
-john
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
diff mbox

Patch

diff --git a/tools/testing/selftests/timers/Makefile b/tools/testing/selftests/timers/Makefile
index eb2859f..90a37b3 100644
--- a/tools/testing/selftests/timers/Makefile
+++ b/tools/testing/selftests/timers/Makefile
@@ -1,8 +1,11 @@ 
-all:
-	gcc posix_timers.c -o posix_timers -lrt
+CFLAGS += -O3 -Wl,-no-as-needed
+LDFLAGS += -lrt -lpthread
+bins = posix_timers
+
+all: ${bins}
 
 run_tests: all
 	./posix_timers
 
 clean:
-	rm -f ./posix_timers
+	rm -f ${bins}