From patchwork Mon Jul 29 21:31:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 18648 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A96B1248D1 for ; Mon, 29 Jul 2013 21:31:37 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id cd7sf4140238qab.1 for ; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=dUajKEo+ns7Jikdvid8dwqxshP43DadTLbVM8WR4B1U=; b=IwBtaP0upudS/kNPWdCZ9VXenp7r/m0UuIVqOPQPpRx9X8UsBB6bEeshPU69Mu6piX bLfH48dtDFYJLJpWeIFa5FyZJdv5V3HkB8uZq5XNCPgKJVKiF5vOUcBtQ8KhT3vGxgih gZvn64tE6nLaReJG9TmDTsMKM63E+FX5cZPNefsfJwtSBypjE09XyMnfF4Dc+zBsHbvq b6ZZrhX+vwruBmmSpX8BcytcpIrzMHT3pCuvyYrhkiPpPEAss0VtVlWjgjlwnjGOTesM ehyjVfhr7zsWsUAbOJwl0EG6ppPcLeFzsHgrugiT4Qdm54SQthjDwogweMvnNAofI0Zg NpxQ== X-Received: by 10.236.113.77 with SMTP id z53mr25685372yhg.47.1375133497448; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.131 with SMTP id dc3ls963871qeb.58.gmail; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr9009385vcb.8.1375133497338; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id xb6si18035358vdb.81.2013.07.29.14.31.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 14:31:37 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id da11so3328104veb.6 for ; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) X-Received: by 10.58.6.210 with SMTP id d18mr25780045vea.96.1375133497237; Mon, 29 Jul 2013 14:31:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.11.8 with SMTP id pc8csp138451vcb; Mon, 29 Jul 2013 14:31:36 -0700 (PDT) X-Received: by 10.66.192.132 with SMTP id hg4mr37496051pac.84.1375133496132; Mon, 29 Jul 2013 14:31:36 -0700 (PDT) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id pt17si14674791pab.93.2013.07.29.14.31.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 14:31:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of john.stultz@linaro.org) client-ip=209.85.220.53; Received: by mail-pa0-f53.google.com with SMTP id lb1so6383868pab.12 for ; Mon, 29 Jul 2013 14:31:35 -0700 (PDT) X-Received: by 10.66.27.43 with SMTP id q11mr64490606pag.97.1375133495607; Mon, 29 Jul 2013 14:31:35 -0700 (PDT) Received: from localhost.localdomain (c-67-170-153-23.hsd1.or.comcast.net. [67.170.153.23]) by mx.google.com with ESMTPSA id om2sm21331095pbc.30.2013.07.29.14.31.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 14:31:35 -0700 (PDT) From: John Stultz To: Dhaval Giani Cc: John Stultz Subject: [PATCH 1/7] volatile-test: Simplify makefile and add testfile generation Date: Mon, 29 Jul 2013 14:31:14 -0700 Message-Id: <1375133480-5597-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375133480-5597-1-git-send-email-john.stultz@linaro.org> References: <1375133480-5597-1-git-send-email-john.stultz@linaro.org> X-Gm-Message-State: ALoCoQlbuWRYVorA5VFpHGb9xB+reMaX5gLWIESm2aluAIvCD+KHck1bp86X3wS8b7FPyPZuO8Zp X-Original-Sender: john.stultz@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Simplify the makefile and test file generation for file based testing Signed-off-by: John Stultz --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7f01f20..e41fea2 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,13 @@ -CFLAGS=-g -Wall +CFLAGS += -g -Wall -O3 -Wl,-no-as-needed -all: volatile-test volatile-test-signal +bins = volatile-test volatile-test-signal +testfile = test -volatile-test: volatile-test.c - ${CC} ${CFLAGS} -o $@ $@.c +all: ${bins} + +testfile: + dd if=/dev/zero of=${testfile} bs=1M count=26 + +clean: + rm -f ${bins} ${testfile} -volatile-test-signal: volatile-test-signal.c - ${CC} ${CFLAGS} -o $@ $@.c