mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2026-01-27 14:34:22 +00:00
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>
23 lines
492 B
Makefile
23 lines
492 B
Makefile
# SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
|
|
include ../config.mk
|
|
|
|
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
|
|
|
|
all: $(TARGETS) $(LIBS)
|
|
|
|
rdma: $(RDMA_OBJ) $(LIBS)
|
|
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
|
|
|
install: all
|
|
for i in $(TARGETS); \
|
|
do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
|
|
done
|
|
|
|
clean:
|
|
rm -f $(RDMA_OBJ) $(TARGETS)
|