]> git.proxmox.com Git - mirror_iproute2.git/blob - devlink/Makefile
tc: add support for TRAP action
[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 $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
16
17 install: all
18 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
19
20 clean:
21 rm -f $(DEVLINKOBJ) $(TARGETS)