mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-16 12:27:13 +00:00

This little dance of mnl_socket_open(), option setting, and bind, is the same regardless of tool. Extract into a new module that should hold helpers for working with libmnl, mnl_util.c. Signed-off-by: Petr Machata <me@pmachata.org> Signed-off-by: David Ahern <dsahern@gmail.com>
25 lines
392 B
Makefile
25 lines
392 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
include ../config.mk
|
|
|
|
TARGETS :=
|
|
|
|
ifeq ($(HAVE_MNL),y)
|
|
|
|
DEVLINKOBJ = devlink.o mnlg.o
|
|
TARGETS += devlink
|
|
|
|
endif
|
|
|
|
all: $(TARGETS) $(LIBS)
|
|
|
|
devlink: $(DEVLINKOBJ) $(LIBNETLINK)
|
|
$(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
|
|
|
|
install: all
|
|
for i in $(TARGETS); \
|
|
do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
|
|
done
|
|
|
|
clean:
|
|
rm -f $(DEVLINKOBJ) $(TARGETS)
|