]> git.proxmox.com Git - mirror_iproute2.git/blame - devlink/Makefile
SPDX license identifiers
[mirror_iproute2.git] / devlink / Makefile
CommitLineData
6054c1eb 1# SPDX-License-Identifier: GPL-2.0
5f1df307
SH
2include ../config.mk
3
a3c4b484
JP
4ifeq ($(HAVE_MNL),y)
5
6DEVLINKOBJ = devlink.o mnlg.o
7TARGETS=devlink
8
9CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
10LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
11
12endif
13
14all: $(TARGETS) $(LIBS)
15
16devlink: $(DEVLINKOBJ)
57bdf8b7 17 $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
a3c4b484
JP
18
19install: all
20 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
21
22clean:
23 rm -f $(DEVLINKOBJ) $(TARGETS)