]> git.proxmox.com Git - mirror_iproute2.git/blob - devlink/Makefile
devlink: support kernel-side snapshot id allocation
[mirror_iproute2.git] / devlink / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 include ../config.mk
3
4 TARGETS :=
5
6 ifeq ($(HAVE_MNL),y)
7
8 DEVLINKOBJ = devlink.o mnlg.o
9 TARGETS += devlink
10
11 endif
12
13 all: $(TARGETS) $(LIBS)
14
15 devlink: $(DEVLINKOBJ)
16 $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
17
18 install: all
19 for i in $(TARGETS); \
20 do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
21 done
22
23 clean:
24 rm -f $(DEVLINKOBJ) $(TARGETS)