get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/76788/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 76788,
    "url": "http://patches.dpdk.org/api/patches/76788/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200907220711.437405-7-thomas@monjalon.net/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200907220711.437405-7-thomas@monjalon.net>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200907220711.437405-7-thomas@monjalon.net",
    "date": "2020-09-07T22:06:46",
    "name": "[v4,06/31] examples/multi_process: convert to pkg-config-based build",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "223888fe2e5d42cc83724044b500e299fd90c086",
    "submitter": {
        "id": 685,
        "url": "http://patches.dpdk.org/api/people/685/?format=api",
        "name": "Thomas Monjalon",
        "email": "thomas@monjalon.net"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200907220711.437405-7-thomas@monjalon.net/mbox/",
    "series": [
        {
            "id": 12000,
            "url": "http://patches.dpdk.org/api/series/12000/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12000",
            "date": "2020-09-07T22:06:40",
            "name": "remove make support in DPDK",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/12000/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/76788/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/76788/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 28C30A04AA;\n\tTue,  8 Sep 2020 00:08:26 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BE16E1C196;\n\tTue,  8 Sep 2020 00:07:33 +0200 (CEST)",
            "from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com\n [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id E408C1C129\n for <dev@dpdk.org>; Tue,  8 Sep 2020 00:07:28 +0200 (CEST)",
            "from compute7.internal (compute7.nyi.internal [10.202.2.47])\n by mailout.nyi.internal (Postfix) with ESMTP id 961E95C002F;\n Mon,  7 Sep 2020 18:07:28 -0400 (EDT)",
            "from mailfrontend1 ([10.202.2.162])\n by compute7.internal (MEProxy); Mon, 07 Sep 2020 18:07:28 -0400",
            "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n by mail.messagingengine.com (Postfix) with ESMTPA id BCDF1328005E;\n Mon,  7 Sep 2020 18:07:27 -0400 (EDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding; s=fm2; bh=OQIlNjPBy9i3n\n sVce4/sitcvXHnkl1REzVKB6OCE3uM=; b=ruyJ+nusDhrYk1ulkXd9Bi5Wn/Naw\n S6MB7E+vS8iOpE8YOw37PIneJ356EeJH+K9yGoCh2ckki5j9BAKVYlSoYYcuh3xi\n OGwM/RdVh9u3399CEtGGgaBI6GriZ9KCgHA5+Rw3tDzUe9bO5IBz8avy4OafW9ij\n EQxNzkSJdzGg5WR623VRWu17me8J/R1tv5qWNI7VOJVSRFg3aVLn6QsMgZvY1f/L\n upLm+eyPPRymPasxWKq0OEfMujd97NU6zXM+bunX7VnIHK5ef5S2U25sjzqacPsX\n WI0Fjeam4tk4pOZuiKE6QfMsf6GS2eUBMQ1RKnrQC0sVD1qJgzRcwMvlQ==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:content-transfer-encoding:date:from\n :in-reply-to:message-id:mime-version:references:subject:to\n :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=\n fm3; bh=OQIlNjPBy9i3nsVce4/sitcvXHnkl1REzVKB6OCE3uM=; b=cbHD14He\n 218qSWCQLfLMgk+iYXnKGiEAqPKun2WUrTqK2gxYEKCa6mZPc+UJ/Illlb1M2gy0\n axKuT1aT+8I7pKNzKvS6zwUNhg8xgXF/lucY8/xqeznGrw898D5W6NZHxDC4EvAV\n wGZYMas90k7GPhqeVPojIlTFnjTrW3ZxFHfodwjWF9UOpIFXJAeARL8UCqrt01y9\n 5VHiJzVZa42oDdFoBiFyuQb4152jvKfvGwDSCPi1o7oMHy3u3W2tsxwX0gRq/rj5\n mpDYccZwVYjoiwcSViRLlXR7TrZxqiiveCY+o2p02U+ESQMZVEAIsy1pVNzc/Gmc\n s8PIVjE+JxyGrg=="
        ],
        "X-ME-Sender": "<xms:IK9WX6pXptqHEaGnFFjd7BDdvuhif5Ua4LMP8K0AoVQ8J8yoEakuyw>\n <xme:IK9WX4orRBCVkoG3J76ivBGBaSYBBQ4ax8-KraF129CnOZR6iYGB7PUamGKyWShg4\n bRVhNvNNwkR059NAA>",
        "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgeduiedrudehuddgtdefucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre\n dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes\n mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpeeufeeggfetvdekgfdvue\n etudehvedvkeffueffgffhhfeukedttdejffetvdfgieenucffohhmrghinhepvhgrrhhs\n rdhmkhdpvgigthhsuhgsughirhdrmhhkpdgvgihtrghpphdrmhhknecukfhppeejjedrud\n efgedrvddtfedrudekgeenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgr\n ihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght",
        "X-ME-Proxy": "<xmx:IK9WX_PdvPKWWRRc4Ze81MmREphk9GgT_85SXi2kLzoC6hm7RA0fpg>\n <xmx:IK9WX54-uqTo8KLYgQIn0JhtA3IL9oX0fyvjghwoUbK8be5ZiaAbHw>\n <xmx:IK9WX55henEC8mx_AoqY8CjFQhYSboYOJjsmi224ZwJxVswyZDUlow>\n <xmx:IK9WX7Q_EzO__ZyiLOFNO5mAoKzYyWI75Bi2Pf7OJRN5nBsiz7lCdg>",
        "From": "Thomas Monjalon <thomas@monjalon.net>",
        "To": "dev@dpdk.org",
        "Cc": "david.marchand@redhat.com, bruce.richardson@intel.com,\n ciara.power@intel.com",
        "Date": "Tue,  8 Sep 2020 00:06:46 +0200",
        "Message-Id": "<20200907220711.437405-7-thomas@monjalon.net>",
        "X-Mailer": "git-send-email 2.28.0",
        "In-Reply-To": "<20200907220711.437405-1-thomas@monjalon.net>",
        "References": "<20200903152717.42095-1-ciara.power@intel.com>\n <20200907220711.437405-1-thomas@monjalon.net>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 06/31] examples/multi_process: convert to\n\tpkg-config-based build",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Bruce Richardson <bruce.richardson@intel.com>\n\nRemove references to the old make build system and use pkg-config for\nbuilding these examples.\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n examples/multi_process/Makefile               | 21 ++------\n .../multi_process/client_server_mp/Makefile   | 19 ++-----\n .../client_server_mp/mp_client/Makefile       | 44 +++++++++++----\n .../client_server_mp/mp_server/Makefile       | 53 +++++++++++--------\n examples/multi_process/hotplug_mp/Makefile    | 46 +++++++++++-----\n examples/multi_process/simple_mp/Makefile     | 44 ++++++++++-----\n examples/multi_process/symmetric_mp/Makefile  | 44 ++++++++++-----\n 7 files changed, 168 insertions(+), 103 deletions(-)",
    "diff": "diff --git a/examples/multi_process/Makefile b/examples/multi_process/Makefile\nindex 7f7e68d912..f0a999745a 100644\n--- a/examples/multi_process/Makefile\n+++ b/examples/multi_process/Makefile\n@@ -1,18 +1,7 @@\n-# SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2010-2014 Intel Corporation\n+subdirs := client_server_mp hotplug_mp simple_mp symmetric_mp\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n+.PHONY: all static shared clean $(subdirs)\n+all static shared clean: $(subdirs)\n \n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += client_server_mp\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += simple_mp\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += symmetric_mp\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += hotplug_mp\n-\n-include $(RTE_SDK)/mk/rte.extsubdir.mk\n+$(subdirs):\n+\t$(MAKE) -C $@ $(MAKECMDGOALS)\ndiff --git a/examples/multi_process/client_server_mp/Makefile b/examples/multi_process/client_server_mp/Makefile\nindex fe7a8af605..e8debdfd9a 100644\n--- a/examples/multi_process/client_server_mp/Makefile\n+++ b/examples/multi_process/client_server_mp/Makefile\n@@ -1,16 +1,7 @@\n-# SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2010-2014 Intel Corporation\n+subdirs := mp_client mp_server\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n+.PHONY: all static shared clean $(subdirs)\n+all static shared clean: $(subdirs)\n \n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_client\n-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_server\n-\n-include $(RTE_SDK)/mk/rte.extsubdir.mk\n+$(subdirs):\n+\t$(MAKE) -C $@ $(MAKECMDGOALS)\ndiff --git a/examples/multi_process/client_server_mp/mp_client/Makefile b/examples/multi_process/client_server_mp/mp_client/Makefile\nindex 7c447feba3..b723e545b7 100644\n--- a/examples/multi_process/client_server_mp/mp_client/Makefile\n+++ b/examples/multi_process/client_server_mp/mp_client/Makefile\n@@ -1,21 +1,43 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, can be overridden by command line or environment\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n # binary name\n APP = mp_client\n \n # all source are stored in SRCS-y\n SRCS-y := client.c\n \n-CFLAGS += $(WERROR_FLAGS) -O3\n-CFLAGS += -I$(SRCDIR)/../shared\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+CFLAGS += -I../shared\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n+\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\ndiff --git a/examples/multi_process/client_server_mp/mp_server/Makefile b/examples/multi_process/client_server_mp/mp_server/Makefile\nindex 50ebf1d7da..f49260a256 100644\n--- a/examples/multi_process/client_server_mp/mp_server/Makefile\n+++ b/examples/multi_process/client_server_mp/mp_server/Makefile\n@@ -1,34 +1,43 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n-ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)\n-$(error This application can only operate in a linux environment, \\\n-please change the definition of the RTE_TARGET environment variable)\n-endif\n-\n # binary name\n APP = mp_server\n \n # all source are stored in SRCS-y\n SRCS-y := main.c init.c args.c\n \n-INC := $(sort $(wildcard *.h))\n+CFLAGS += -I../shared\n \n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n-CFLAGS += $(WERROR_FLAGS) -O3\n-CFLAGS += -I$(SRCDIR)/../shared\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n \n-# for newer gcc, e.g. 4.4, no-strict-aliasing may not be necessary\n-# and so the next line can be removed in those cases.\n-EXTRA_CFLAGS += -fno-strict-aliasing\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\ndiff --git a/examples/multi_process/hotplug_mp/Makefile b/examples/multi_process/hotplug_mp/Makefile\nindex 1fd7aa085c..2c023a73d8 100644\n--- a/examples/multi_process/hotplug_mp/Makefile\n+++ b/examples/multi_process/hotplug_mp/Makefile\n@@ -1,14 +1,5 @@\n # SPDX-License-Identifier: BSD-3-Clause\n-# Copyright(c) 2018 Intel Corporation\n-\n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n+# Copyright(c) 2010-2014 Intel Corporation\n \n # binary name\n APP = hotplug_mp\n@@ -16,8 +7,35 @@ APP = hotplug_mp\n # all source are stored in SRCS-y\n SRCS-y := main.c commands.c\n \n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\ndiff --git a/examples/multi_process/simple_mp/Makefile b/examples/multi_process/simple_mp/Makefile\nindex f88b499bdc..410f8b5368 100644\n--- a/examples/multi_process/simple_mp/Makefile\n+++ b/examples/multi_process/simple_mp/Makefile\n@@ -1,23 +1,41 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n # binary name\n APP = simple_mp\n \n # all source are stored in SRCS-y\n SRCS-y := main.c mp_commands.c\n \n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\ndiff --git a/examples/multi_process/symmetric_mp/Makefile b/examples/multi_process/symmetric_mp/Makefile\nindex b7544489bb..df69ecabe7 100644\n--- a/examples/multi_process/symmetric_mp/Makefile\n+++ b/examples/multi_process/symmetric_mp/Makefile\n@@ -1,23 +1,41 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n-ifeq ($(RTE_SDK),)\n-$(error \"Please define RTE_SDK environment variable\")\n-endif\n-\n-# Default target, detect a build directory, by looking for a path with a .config\n-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))\n-\n-include $(RTE_SDK)/mk/rte.vars.mk\n-\n # binary name\n APP = symmetric_mp\n \n # all source are stored in SRCS-y\n SRCS-y := main.c\n \n-CFLAGS += -O3\n-CFLAGS += $(WERROR_FLAGS)\n-CFLAGS += -DALLOW_EXPERIMENTAL_API\n+# Build using pkg-config variables if possible\n+ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)\n+$(error \"no installation of DPDK found\")\n+endif\n \n-include $(RTE_SDK)/mk/rte.extapp.mk\n+all: shared\n+.PHONY: shared static\n+shared: build/$(APP)-shared\n+\tln -sf $(APP)-shared build/$(APP)\n+static: build/$(APP)-static\n+\tln -sf $(APP)-static build/$(APP)\n+\n+PKGCONF ?= pkg-config\n+\n+PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)\n+CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)\n+LDFLAGS_SHARED = $(shell $(PKGCONF) --libs libdpdk)\n+LDFLAGS_STATIC = $(shell $(PKGCONF) --static --libs libdpdk)\n+\n+build/$(APP)-shared: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_SHARED)\n+\n+build/$(APP)-static: $(SRCS-y) Makefile $(PC_FILE) | build\n+\t$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS) $(LDFLAGS_STATIC)\n+\n+build:\n+\t@mkdir -p $@\n+\n+.PHONY: clean\n+clean:\n+\trm -f build/$(APP) build/$(APP)-static build/$(APP)-shared\n+\ttest -d build && rmdir -p build || true\n",
    "prefixes": [
        "v4",
        "06/31"
    ]
}