1include ../Config 2ifeq ($(HAVE_MNL),y) 3 4TIPCOBJ=bearer.o \ 5 cmdl.o link.o \ 6 media.o misc.o \ 7 msg.o nametable.o \ 8 node.o socket.o \ 9 peer.o tipc.o 10 11include ../Config 12 13TARGETS=tipc 14CFLAGS += $(shell $(PKG_CONFIG) libmnl --cflags) 15LDLIBS += $(shell $(PKG_CONFIG) libmnl --libs) 16 17endif 18 19all: $(TARGETS) $(LIBS) 20 21tipc: $(TIPCOBJ) 22 23install: all 24 install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR) 25 26clean: 27 rm -f $(TIPCOBJ) $(TARGETS) 28