]> git.proxmox.com Git - mirror_iproute2.git/blob - devlink/Makefile
add devlink tool
[mirror_iproute2.git] / devlink / Makefile
1 include ../Config
2 ifeq ($(HAVE_MNL),y)
3
4 DEVLINKOBJ = devlink.o mnlg.o
5 TARGETS=devlink
6
7 CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
8 LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
9
10 endif
11
12 all: $(TARGETS) $(LIBS)
13
14 devlink: $(DEVLINKOBJ)
15
16 install: all
17 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
18
19 clean:
20 rm -f $(DEVLINKOBJ) $(TARGETS)