From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by dpdk.org (Postfix) with ESMTP id 9C99DAFE1 for ; Fri, 9 May 2014 12:32:24 +0200 (CEST) Received: by mail-we0-f179.google.com with SMTP id q59so3684696wes.24 for ; Fri, 09 May 2014 03:32:30 -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=aRmPPxENHuhL4e1aSf69h8ni87kieY3SqdK9SvY5blra576dxcmfQYBWe3KyLxXXo3 JDIjiK9pOCniJzwwCwAFzt3PJXYSNbeNuwBJY3FeA/wr7lvtNNd/7d8xJtg/Zp2rLt5B Hfu6Z+eDYiiPPEN3zrCFwlkqha5h2OjU2Ah6JqEPqoKTJ3VdpNb0DLhpy2AhHMTJLL3S 5lRpwe4BdbXh6fgpy+4pS0LF3ijzuFaM2Tcb4/ejRcCRAceludRcLPv979LGcGsxPq4q hfV2ZtLocSCKwf0iZ57L5g4AESvKqv2wG+AVaTDQr6UxUPsyITqlbHVV+EsDlDeEy4MB 25KA== X-Gm-Message-State: ALoCoQmKmSNRwbSRIHdORgo1YywKlj28v9D8Qy8V+lpSwOQrSMOvrYJIaxHjDxsgT1GnFnZu+laI X-Received: by 10.180.81.36 with SMTP id w4mr2663232wix.36.1399631550728; Fri, 09 May 2014 03:32:30 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id by1sm4936710wjc.26.2014.05.09.03.32.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 May 2014 03:32:30 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 9 May 2014 12:32:09 +0200 Message-Id: <1399631530-24956-6-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1399631530-24956-1-git-send-email-olivier.matz@6wind.com> References: <1399631530-24956-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v2 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, 09 May 2014 10:32:24 -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