Linux block layer
 help / color / mirror / Atom feed
From: Bart Van Assche <bart.vanassche@wdc.com>
To: Omar Sandoval <osandov@fb.com>
Cc: linux-block@vger.kernel.org, Bart Van Assche <bart.vanassche@wdc.com>
Subject: [PATCH blktests v3 3/6] src/Makefile: Introduce the C_TARGETS variable
Date: Mon,  9 Jul 2018 15:56:40 -0700	[thread overview]
Message-ID: <20180709225643.10537-4-bart.vanassche@wdc.com> (raw)
In-Reply-To: <20180709225643.10537-1-bart.vanassche@wdc.com>

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 <bart.vanassche@wdc.com>
---
 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
-- 
2.18.0

  parent reply	other threads:[~2018-07-09 22:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-09 22:56 [PATCH blktests v3 0/6] Add SRP initiator driver tests Bart Van Assche
2018-07-09 22:56 ` [PATCH blktests v3 1/6] dir-locals.el: Add c-mode settings Bart Van Assche
2018-07-11  7:32   ` Johannes Thumshirn
2018-07-09 22:56 ` [PATCH blktests v3 2/6] check: Make $FULL an absolute path Bart Van Assche
2018-07-09 22:56 ` Bart Van Assche [this message]
2018-07-09 22:56 ` [PATCH blktests v3 4/6] src/Makefile: Move -Wall from the C compilation rule to the $(CFLAGS) variable Bart Van Assche
2018-07-09 22:56 ` [PATCH blktests v3 5/6] Add the discontiguous-io test program Bart Van Assche
2018-07-09 22:56 ` [PATCH blktests v3 6/6] Add tests for the SRP initiator and target drivers Bart Van Assche
2018-07-10 19:57 ` [PATCH blktests v3 0/6] Add SRP initiator driver tests Omar Sandoval
2018-07-10 20:40   ` Bart Van Assche
2018-07-10 21:46     ` Bart Van Assche

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180709225643.10537-4-bart.vanassche@wdc.com \
    --to=bart.vanassche@wdc.com \
    --cc=linux-block@vger.kernel.org \
    --cc=osandov@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox