diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2022-03-09 18:03:26 +0100 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2022-03-12 09:00:56 -0700 |
commit | 93fb6810e1467511007c155a1aa503139496464a (patch) | |
tree | aeeaf7f659726e8cf437b634c5121a65ee74dd29 /rdma | |
parent | 4bff7017740a2dd0a1bcf299b31761b40d971586 (diff) | |
download | iproute2-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 'rdma')
-rw-r--r-- | rdma/Makefile | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/rdma/Makefile b/rdma/Makefile index 9154efeb..37d904a7 100644 --- a/rdma/Makefile +++ b/rdma/Makefile @@ -1,16 +1,12 @@ # SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB include ../config.mk -TARGETS := - -ifeq ($(HAVE_MNL),y) CFLAGS += -I./include/uapi/ RDMA_OBJ = rdma.o utils.o dev.o link.o res.o res-pd.o res-mr.o res-cq.o \ res-cmid.o res-qp.o sys.o stat.o stat-mr.o res-ctx.o res-srq.o TARGETS += rdma -endif all: $(TARGETS) $(LIBS) |