summaryrefslogtreecommitdiff
path: root/dcb
diff options
context:
space:
mode:
authorAndrea Claudi <aclaudi@redhat.com>2022-03-09 18:03:26 +0100
committerDavid Ahern <dsahern@kernel.org>2022-03-12 09:00:56 -0700
commit93fb6810e1467511007c155a1aa503139496464a (patch)
treeaeeaf7f659726e8cf437b634c5121a65ee74dd29 /dcb
parent4bff7017740a2dd0a1bcf299b31761b40d971586 (diff)
downloadiproute2-93fb6810e1467511007c155a1aa503139496464a.tar.gz
Makefile: move HAVE_MNL check to top-level Makefile
dcb, devlink, rdma, tipc and vdpa rely on libmnl to compile, so they check for libmnl to be installed on their Makefiles. This moves HAVE_MNL check from the tools to top-level Makefile, thus avoiding to call their Makefiles if libmnl is not present. Signed-off-by: Andrea Claudi <aclaudi@redhat.com> Signed-off-by: David Ahern <dsahern@kernel.org>
Diffstat (limited to 'dcb')
-rw-r--r--dcb/Makefile6
1 files changed, 0 insertions, 6 deletions
diff --git a/dcb/Makefile b/dcb/Makefile
index 3a2e5d4c..ca65d467 100644
--- a/dcb/Makefile
+++ b/dcb/Makefile
@@ -1,10 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
include ../config.mk
-TARGETS :=
-
-ifeq ($(HAVE_MNL),y)
-
DCBOBJ = dcb.o \
dcb_app.o \
dcb_buffer.o \
@@ -15,8 +11,6 @@ DCBOBJ = dcb.o \
TARGETS += dcb
LDLIBS += -lm
-endif
-
all: $(TARGETS) $(LIBS)
dcb: $(DCBOBJ) $(LIBNETLINK)