Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756603AbbBEGh1 (ORCPT ); Thu, 5 Feb 2015 01:37:27 -0500 Received: from mail-pd0-f172.google.com ([209.85.192.172]:37393 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751190AbbBEGhY (ORCPT ); Thu, 5 Feb 2015 01:37:24 -0500 From: John Stultz To: Linux Kernel Mailing List Cc: John Stultz , Shuah Khan Subject: [PATCH 1/7] selftests/timers: Cleanup Makefile to make it easier to add future tests Date: Wed, 4 Feb 2015 22:37:06 -0800 Message-Id: <1423118232-14096-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> References: <1423118232-14096-1-git-send-email-john.stultz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 999 Lines: 36 Try to streamline the makefile so its easier to add timer/timekeeping tests. Cc: Shuah Khan Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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} -- 1.9.1 -- 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/