]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - tipc/Makefile
ll_map: Add function to remove link cache entry by index
[mirror_iproute2.git] / tipc / Makefile
index 87e3cac3756f2c92c32e8138db06d972cafb3a9f..a10debe08c619756266cd2ba9e3794b043a60b11 100644 (file)
@@ -1,4 +1,8 @@
-include ../Config
+# SPDX-License-Identifier: GPL-2.0
+include ../config.mk
+
+TARGETS :=
+
 ifeq ($(HAVE_MNL),y)
 
 TIPCOBJ=bearer.o \
@@ -8,11 +12,7 @@ TIPCOBJ=bearer.o \
     node.o socket.o \
     peer.o tipc.o
 
-include ../Config
-
-TARGETS=tipc
-CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags)
-LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs)
+TARGETS += tipc
 
 endif
 
@@ -22,7 +22,9 @@ tipc: $(TIPCOBJ)
        $(QUIET_LINK)$(CC) $^ $(LDFLAGS) $(LDLIBS) -o $@
 
 install: all
-       install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
+       for i in $(TARGETS); \
+       do install -m 0755 $$i $(DESTDIR)$(SBINDIR); \
+       done
 
 clean:
        rm -f $(TIPCOBJ) $(TARGETS)