1 include ../Config 2 3 ifeq ($(IP_CONFIG_SETNS),y) 4 CFLAGS += -DHAVE_SETNS 5 endif 6 7 CFLAGS += -fPIC 8 9 UTILOBJ = 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 13 NLOBJ=libgenl.o ll_map.o libnetlink.o 14 15 all: libnetlink.a libutil.a 16 17 libnetlink.a: $(NLOBJ) 18 $(AR) rcs $@ $(NLOBJ) 19 20 libutil.a: $(UTILOBJ) $(ADDLIB) 21 $(AR) rcs $@ $(UTILOBJ) $(ADDLIB) 22 23 install: 24 25 clean: 26 rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a 27 28