Soft Patch Panel
 help / color / mirror / Atom feed
From: x-fn-spp@sl.ntt-tx.co.jp
To: ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp
Cc: spp@dpdk.org
Subject: [spp] [PATCH 3/3] spp_mirror: add Makefile for spp_mirror
Date: Wed, 21 Nov 2018 10:36:17 +0900	[thread overview]
Message-ID: <201811210136.wAL1aHrQ009769@imss03.silk.ntt-tx.co.jp> (raw)
In-Reply-To: <20181121013617.8938-1-x-fn-spp@sl.ntt-tx.co.jp>

From: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>

Add Makefile for spp_mirror.

Signed-off-by: Hideyuki Yamashita <yamashita.hideyuki@po.ntt-tx.co.jp>
Signed-off-by: Naoki Takada <takada.naoki@lab.ntt.co.jp>
---
 src/Makefile        |  1 +
 src/mirror/Makefile | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 src/mirror/Makefile

diff --git a/src/Makefile b/src/Makefile
index d2eb9b6..01f8929 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -42,5 +42,6 @@ DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += nfv
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += primary
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += vm
 DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += vf
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mirror
 
 include $(RTE_SDK)/mk/rte.extsubdir.mk
diff --git a/src/mirror/Makefile b/src/mirror/Makefile
new file mode 100644
index 0000000..a759ad2
--- /dev/null
+++ b/src/mirror/Makefile
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Nippon Telegraph and Telephone Corporation
+
+ifeq ($(RTE_SDK),)
+$(error "Please define RTE_SDK environment variable")
+endif
+
+# Default target, can be overridden by command line or environment
+include $(RTE_SDK)/mk/rte.vars.mk
+
+# binary name
+APP = spp_mirror
+
+# all source are stored in SRCS-y
+SRCS-y := spp_mirror.c
+SRCS-y += ../shared/common.c
+SRCS-y += ../vf/common/spp_proc.c ../vf/common/spp_port.c
+SRCS-y += ../vf/common/command_conn.c ../vf/common/command_proc.c
+SRCS-y += ../vf/common/command_dec.c
+SRCS-y += ../vf/common/ringlatencystats.c ../vf/common/string_buffer.c
+
+CFLAGS += $(WERROR_FLAGS) -O3
+CFLAGS += -I$(SRCDIR)/../shared
+CFLAGS += -I$(SRCDIR)/../vf/common
+CFLAGS += -DSPP_MIRROR_MODULE
+CFLAGS += -DSPP_MIRROR_SHALLOWCOPY
+#CFLAGS += -DSPP_DEMONIZE
+#CFLAGS += -DSPP_RINGLATENCYSTATS_ENABLE
+
+ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
+LDLIBS += -lrte_pmd_ring
+LDLIBS += -lrte_pmd_vhost
+endif
+
+include $(RTE_SDK)/mk/rte.extapp.mk
-- 
2.18.0

      parent reply	other threads:[~2018-11-21  1:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181121013617.8938-1-x-fn-spp@sl.ntt-tx.co.jp>
2018-11-21  1:36 ` [spp] [PATCH 1/3] spp_mirror: add spp_mirror common define and func x-fn-spp
2018-11-21  1:36 ` [spp] [PATCH 2/3] spp_mirror: add spp_mirror x-fn-spp
2018-11-21  1:36 ` x-fn-spp [this message]

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=201811210136.wAL1aHrQ009769@imss03.silk.ntt-tx.co.jp \
    --to=x-fn-spp@sl.ntt-tx.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=ogawa.yasufumi@lab.ntt.co.jp \
    --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).