]> 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 f06dcb11931805873ee2d2d66aef9dabbec5eb57..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,20 +12,19 @@ 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
 
 all: $(TARGETS) $(LIBS)
 
 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)