From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id EF1E0B0AC for ; Fri, 16 May 2014 10:19:07 +0200 (CEST) Received: by mail-wg0-f51.google.com with SMTP id x13so4624614wgg.10 for ; Fri, 16 May 2014 01:19:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EoPAQW3mnrEqSWa1G49GhdtFAh0rDYMls3rvmb8FP94=; b=PYV+gk1mr9g17odm1LN353B+5Soo3gJM3Swn3rGbvjlXXpqi8jBhkOymgDBMqurFRN HrW+DAJapwZZJtLM5xWK30sii8gB8hdR9Lstm9u9iPHfGxicy0rr9w9a/GmUvv6DLkE4 kS0eNDBwzSCJCRiwwi8SLoaZ+BwB1a45prjZOdxxSzq0WL0w5kkYKwr59yBFEWJPla4C 0PH6vLcHdP/IhvEJF1QWgT5hduVT5JvrceK+qcHP8mUd+zQiG2INVJY7J9uvjUNBlPyz +GavOwxSHdiZVsGt3VprpvgvY7J004Zrb0KMOqbslbLjy9eGEe/Bs15Nivo6lORe3T7i /iWw== X-Gm-Message-State: ALoCoQmo3+DfBiX8s9S6s+9jnnDAJZDk6BfqBtTLKo7UP3e7TZJW62dg2LK87rngop8paiv4XdfC X-Received: by 10.180.208.52 with SMTP id mb20mr34889212wic.34.1400228356108; Fri, 16 May 2014 01:19:16 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id dn4sm2047028wib.18.2014.05.16.01.19.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 May 2014 01:19:15 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 16 May 2014 10:19:00 +0200 Message-Id: <1400228341-29334-6-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1400228341-29334-1-git-send-email-olivier.matz@6wind.com> References: <1400228341-29334-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v3 5/6] examples: fix netmap_compat example X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 08:19:08 -0000 It is not allowed to reference a an absolute file name in SRCS-y. A VPATH has to be used, else the dependencies won't be checked properly. Signed-off-by: Olivier Matz --- examples/netmap_compat/bridge/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/netmap_compat/bridge/Makefile b/examples/netmap_compat/bridge/Makefile index 74feb1e..ebc6b1c 100644 --- a/examples/netmap_compat/bridge/Makefile +++ b/examples/netmap_compat/bridge/Makefile @@ -41,9 +41,12 @@ include $(RTE_SDK)/mk/rte.vars.mk # binary name APP = bridge +# for compat_netmap.c +VPATH := $(SRCDIR)/../lib + # all source are stored in SRCS-y SRCS-y := bridge.c -SRCS-y += $(SRCDIR)/../lib/compat_netmap.c +SRCS-y += compat_netmap.c CFLAGS += -O3 -I$(SRCDIR)/../lib -I$(SRCDIR)/../netmap CFLAGS += $(WERROR_FLAGS) -- 1.9.2