From patchwork Mon Jul 9 22:56:40 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: 10515915 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 5072D6024A for ; Mon, 9 Jul 2018 22:56:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4420C28BAE for ; Mon, 9 Jul 2018 22:56:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38A8F28BD7; Mon, 9 Jul 2018 22:56:52 +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 E90C828BAE for ; Mon, 9 Jul 2018 22:56:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbeGIW4s (ORCPT ); Mon, 9 Jul 2018 18:56:48 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:35639 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754508AbeGIW4p (ORCPT ); Mon, 9 Jul 2018 18:56:45 -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=1531177300; x=1562713300; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=KnMREhMlYGo69ydA90Zfi8YXeNs0mPkvG0OwJGTe/to=; b=RPw/vC2ScBQSIJKaxkk5MjHUXfFGNE0Ty7lb2Tt+Ti/I2T4DCCiiJtM3 0JgCKvkOQ+JC44BgZ6aETiwajVWFjtqCx0TRWMUNanW4opgnffYgHoUtz HHJC+r8USZ06LW7twOf3DzZcJMVYSVQ+V3YGEsNDSjDnpMkvE9AuDlGbE n4bjgENPZNne4o5mEMHPv8rRTYhtrqhXc3f9KzVcnvK3FOsZWeFUSJIjo UvEOLWRpEmS7o2iQVL0YIlUnVqMBhP+cT5tTrkW0n5oxNN3QQzNPqANwR wYjeHpBx6Px04Tt0fY1Nm5at8JCuLDYFuof/dc3ZsDTXC/bvMvrPFjOpA g==; X-IronPort-AV: E=Sophos;i="5.51,330,1526313600"; d="scan'208";a="180580408" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 10 Jul 2018 07:01:38 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 09 Jul 2018 15:45:47 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 09 Jul 2018 15:56:44 -0700 From: Bart Van Assche To: Omar Sandoval Cc: linux-block@vger.kernel.org, Bart Van Assche Subject: [PATCH blktests v3 3/6] src/Makefile: Introduce the C_TARGETS variable Date: Mon, 9 Jul 2018 15:56:40 -0700 Message-Id: <20180709225643.10537-4-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180709225643.10537-1-bart.vanassche@wdc.com> References: <20180709225643.10537-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 This patch does not change any functionality but will make it easier to add support for building C++ code. Signed-off-by: Bart Van Assche --- src/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 612282d14af8..7d15d115f6df 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,4 @@ -TARGETS := \ +C_TARGETS := \ loblksize \ loop_get_status_null \ openclose \ @@ -6,6 +6,8 @@ TARGETS := \ sg/syzkaller1 \ nbdsetsize +TARGETS := $(C_TARGETS) + CFLAGS := -O2 all: $(TARGETS) @@ -13,7 +15,7 @@ all: $(TARGETS) clean: rm -f $(TARGETS) -$(TARGETS): %: %.c +$(C_TARGETS): %: %.c $(CC) -Wall -o $@ $(CPPFLAGS) $(CFLAGS) $^ .PHONY: all clean