From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by dpdk.org (Postfix) with ESMTP id CC95F594A for ; Fri, 25 Apr 2014 14:01:06 +0200 (CEST) Received: by mail-wi0-f178.google.com with SMTP id bs8so2525282wib.5 for ; Fri, 25 Apr 2014 05:01:09 -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=N3/wpKOh3kq9Hbk6bux4NR7Z6dbrmYM/g1Kt/f4Gr/ZcN2P9tHCoYxdKlp7YS3Aphz +NuInkdvFvAC0I4OHvtyY+jeaW+Yuv1iDUyBT6hLtCSohdsF67L20u2egioqTlsYxsYH OjKjTk0CCFzzUQ+Gu3LtlBlh4U5cfVicB9Q2jj4Tbj0MELDVbWZmewF/z7FikWY8HxdM g4QH3oNtzWWgcXEZs5Ny6VbOK7E3LfWQPax5y2bPU7mkVvh4II1cbgMMLyf/5r746qsd fYfzxaNXIau9esU+I8dj2NyjsZL7AYfA5GO5wDr2OvcNkBGn/vs8sWVTKA7XnUxqRV6E 3miw== X-Gm-Message-State: ALoCoQlZKD6gf2Wr2NITkYVko/4r0DX4eCELuHs2tByK1nufXhHP0RloxoaZGx4Dh72rFlPBdokv X-Received: by 10.180.212.107 with SMTP id nj11mr3497459wic.40.1398427269588; Fri, 25 Apr 2014 05:01:09 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id nb8sm5460990wic.18.2014.04.25.05.01.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Apr 2014 05:01:08 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 25 Apr 2014 14:00:49 +0200 Message-Id: <1398427249-15418-6-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> References: <1398427249-15418-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 5/5] 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, 25 Apr 2014 12:01:07 -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