Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 1/3] makefile: fix problem of dependency is not checked
Date: Mon, 26 Nov 2018 16:26:04 +0900	[thread overview]
Message-ID: <1543217166-13731-2-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <1543217166-13731-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp>

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Add `-MMD` to CFLAGS option in Makefiles in each of directory under
`src` for checking updated files while compilation. Without this
change, files changed after previous compilation are ignored and not
compiled.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 src/mirror/Makefile  | 2 +-
 src/nfv/Makefile     | 2 +-
 src/primary/Makefile | 2 +-
 src/vf/Makefile      | 2 +-
 src/vm/Makefile      | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mirror/Makefile b/src/mirror/Makefile
index 614a44c..073afbd 100644
--- a/src/mirror/Makefile
+++ b/src/mirror/Makefile
@@ -20,7 +20,7 @@ SRCS-y += ../vf/common/command_dec.c
 SRCS-y += ../vf/common/ringlatencystats.c ../vf/common/string_buffer.c
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += $(WERROR_FLAGS) -O3 -MMD
 CFLAGS += -I$(SRCDIR)/../shared
 CFLAGS += -I$(SRCDIR)/../vf/common
 CFLAGS += -DSPP_MIRROR_MODULE
diff --git a/src/nfv/Makefile b/src/nfv/Makefile
index 16dfbbb..2d3ffed 100644
--- a/src/nfv/Makefile
+++ b/src/nfv/Makefile
@@ -15,7 +15,7 @@ APP = spp_nfv
 SRCS-y := nfv.c ../shared/common.c
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += $(WERROR_FLAGS) -O3 -MMD
 CFLAGS += -I$(SRCDIR)/../shared
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
diff --git a/src/primary/Makefile b/src/primary/Makefile
index bedea8e..59c9ba7 100644
--- a/src/primary/Makefile
+++ b/src/primary/Makefile
@@ -24,7 +24,7 @@ SRCS-y := main.c init.c args.c ../shared/common.c
 INC := $(wildcard *.h)
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += $(WERROR_FLAGS) -O3 -MMD
 CFLAGS += -I$(SRCDIR)/../shared
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
diff --git a/src/vf/Makefile b/src/vf/Makefile
index f2a167b..42c9037 100644
--- a/src/vf/Makefile
+++ b/src/vf/Makefile
@@ -19,7 +19,7 @@ SRCS-y += common/spp_proc.c
 SRCS-y += ../shared/common.c
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += $(WERROR_FLAGS) -O3 -MMD
 CFLAGS += -I$(SRCDIR)/../shared
 CFLAGS += -I$(SRCDIR)/common
 #CFLAGS += -DSPP_DEMONIZE
diff --git a/src/vm/Makefile b/src/vm/Makefile
index 27ba47e..be3fa5e 100644
--- a/src/vm/Makefile
+++ b/src/vm/Makefile
@@ -24,7 +24,7 @@ SRCS-y := main.c init.c args.c ../shared/common.c
 INC := $(wildcard *.h)
 
 CFLAGS += -DALLOW_EXPERIMENTAL_API
-CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += $(WERROR_FLAGS) -O3 -MMD
 CFLAGS += -I$(SRCDIR)/../shared
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
-- 
2.7.4

  reply	other threads:[~2018-11-26  7:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-26  7:26 [spp] [PATCH 0/3] Revise makefile ogawa.yasufumi
2018-11-26  7:26 ` ogawa.yasufumi [this message]
2018-11-26  7:26 ` [spp] [PATCH 2/3] makefile: introduce GNUmakefile ogawa.yasufumi
2018-11-26  7:26 ` [spp] [PATCH 3/3] makefile: update Makefile for testing DPDK ogawa.yasufumi

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=1543217166-13731-2-git-send-email-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /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;
as well as URLs for NNTP newsgroup(s).