Home | History | Annotate | Download | only in devlink
      1 include ../config.mk
      2 
      3 ifeq ($(HAVE_MNL),y)
      4 
      5 DEVLINKOBJ = devlink.o mnlg.o
      6 TARGETS=devlink
      7 
      8 CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
      9 LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
     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)
     23