summaryrefslogtreecommitdiff
path: root/examples/netmap_compat
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-05-16 10:19:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-05-16 16:02:55 +0200
commitd88219f588082fcc5263623b8d5d521279bb7321 (patch)
tree0bcdb1e091f5eadfc6505d180e8a85297f82ff02 /examples/netmap_compat
parentea9a59b26c3c86b498337e968ee8f68c4e263614 (diff)
downloaddpdk-draft-windows-d88219f588082fcc5263623b8d5d521279bb7321.zip
dpdk-draft-windows-d88219f588082fcc5263623b8d5d521279bb7321.tar.gz
dpdk-draft-windows-d88219f588082fcc5263623b8d5d521279bb7321.tar.xz
examples/netmap_compat: fix makefile
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 <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'examples/netmap_compat')
-rw-r--r--examples/netmap_compat/bridge/Makefile5
1 files changed, 4 insertions, 1 deletions
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)