1include ../Config 2 3ifeq ($(IP_CONFIG_SETNS),y) 4 CFLAGS += -DHAVE_SETNS 5endif 6 7CFLAGS += -fPIC 8 9UTILOBJ = utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o \ 10 inet_proto.o namespace.o json_writer.o \ 11 names.o color.o 12 13NLOBJ=libgenl.o ll_map.o libnetlink.o 14 15all: libnetlink.a libutil.a 16 17libnetlink.a: $(NLOBJ) 18 $(AR) rcs $@ $(NLOBJ) 19 20libutil.a: $(UTILOBJ) $(ADDLIB) 21 $(AR) rcs $@ $(UTILOBJ) $(ADDLIB) 22 23install: 24 25clean: 26 rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a 27 28