1include ../config.mk 2 3ifeq ($(HAVE_MNL),y) 4 5DEVLINKOBJ = devlink.o mnlg.o 6TARGETS=devlink 7 8CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags) 9LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) 10 11endif 12 13all: $(TARGETS) $(LIBS) 14 15devlink: $(DEVLINKOBJ) 16 $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@ 17 18install: all 19 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR) 20 21clean: 22 rm -f $(DEVLINKOBJ) $(TARGETS) 23