]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tipc/Makefile
Revert "tipc: add peer remove functionality"
[mirror_iproute2.git] / tipc / Makefile
index 4bda8c5daa4de7a894303992eb8ca281761b3ac8..bc5ecfd37518749e23190a3464745ddfe7ccfdbd 100644 (file)
@@ -1,3 +1,6 @@
+include ../Config
+ifeq ($(HAVE_MNL),y)
+
 TIPCOBJ=bearer.o \
     cmdl.o link.o \
     media.o misc.o \
@@ -5,8 +8,13 @@ TIPCOBJ=bearer.o \
     node.o socket.o \
     tipc.o
 
+include ../Config
+
 TARGETS=tipc
-LDLIBS += -lmnl
+CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
+LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
+
+endif
 
 all: $(TARGETS) $(LIBS)