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 /Makefile | |
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 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -65,7 +65,10 @@ WFLAGS += -Wmissing-declarations -Wold-style-definition -Wformat=2 CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS) YACCFLAGS = -d -t -v -SUBDIRS=lib ip tc bridge misc netem genl tipc devlink rdma dcb man vdpa +SUBDIRS=lib ip tc bridge misc netem genl man +ifeq ($(HAVE_MNL),y) +SUBDIRS += tipc devlink rdma dcb vdpa +endif LIBNETLINK=../lib/libutil.a ../lib/libnetlink.a LDLIBS += $(LIBNETLINK) |