]> git.proxmox.com Git - mirror_iproute2.git/blob - devlink/Makefile
devlink: don't need to call pkg-config twice
[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 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
20
21 clean:
22 rm -f $(DEVLINKOBJ) $(TARGETS)