From patchwork Wed Jun 27 21:49:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10492711 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 743AC60230 for ; Wed, 27 Jun 2018 21:49:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 744952A32B for ; Wed, 27 Jun 2018 21:49:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 67DE42A37D; Wed, 27 Jun 2018 21:49:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 117182A32B for ; Wed, 27 Jun 2018 21:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934745AbeF0VtK (ORCPT ); Wed, 27 Jun 2018 17:49:10 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:46714 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934499AbeF0VtK (ORCPT ); Wed, 27 Jun 2018 17:49:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1530136150; x=1561672150; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=xZMVJBBiRtxHckPDp8nw0kPIzQ2udgABn6ClVuWwnjA=; b=KrkDnVrhdrKPlKwGafkWpCCeEg6LMmB8Rbz9SM7YYO6O61HDBV93ERHH QL+VlDRR1i2/P4396Zt76wzHCIGCc+BvPQmIdF2iO4DijDjre00Gu9wvo vLauljINrLy8imwo8H53vjs8J50f+tqk4Tcsd4Y9jAdtxifXbq5tumOJX lbhaojtrClGg8J7u6RSGFsDSVvqCrcpVwGn/MWKHfcTeBoj7qUe3wvGlu DZwLf/VJziMEbkEDL2/O/YwvZ5I839GR3o9Q7uefG8/fmky0y3fc4Rcsa MilZJ6rEuYpEKW1vGPN1yOuF/z7zcmeQ55hohoHT7buI67U6rkJG7oyaE A==; X-IronPort-AV: E=Sophos;i="5.51,280,1526313600"; d="scan'208";a="185634668" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 28 Jun 2018 05:49:09 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 27 Jun 2018 14:38:25 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 27 Jun 2018 14:49:10 -0700 From: Bart Van Assche To: Omar Sandoval Cc: linux-block@vger.kernel.org, Bart Van Assche Subject: [PATCH blktests v2 1/3] src/Makefile: Rename $(TARGETS) into $(C_TARGETS) Date: Wed, 27 Jun 2018 14:49:06 -0700 Message-Id: <20180627214908.26379-2-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180627214908.26379-1-bart.vanassche@wdc.com> References: <20180627214908.26379-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Additionally, move -Wall from the C compilation rule to the $(CFLAGS) variable. Signed-off-by: Bart Van Assche Reviewed-by: Johannes Thumshirn --- src/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index 612282d14af8..efbf393f4c58 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -TARGETS := \ +C_TARGETS := \ loblksize \ loop_get_status_null \ openclose \ @@ -6,14 +6,16 @@ TARGETS := \ sg/syzkaller1 \ nbdsetsize -CFLAGS := -O2 +TARGETS := $(C_TARGETS) + +CFLAGS := -O2 -Wall all: $(TARGETS) clean: rm -f $(TARGETS) -$(TARGETS): %: %.c - $(CC) -Wall -o $@ $(CPPFLAGS) $(CFLAGS) $^ +$(C_TARGETS): %: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $^ .PHONY: all clean