blob: 9d1307dd4df2c585ec1b33ad9cd9d717a83b4726 [file] [log] [blame]
Mike Frysinger691c8a62012-12-16 17:09:16 -05001include ../Config
2
Vadim Kochaneb67e442014-12-24 23:04:08 +02003ifeq ($(IP_CONFIG_SETNS),y)
4 CFLAGS += -DHAVE_SETNS
5endif
6
Andreas Henriksson6837f772009-11-23 11:03:52 +01007CFLAGS += -fPIC
osdl.org!shemmingeraba5acd2004-04-15 20:56:59 +00008
Stephen Hemmingerfcc16c22015-08-21 14:14:51 -07009UTILOBJ = utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o \
10 inet_proto.o namespace.o json_writer.o \
Mathias Nymand7bd2db2015-04-28 13:18:21 +030011 names.o color.o
osdl.org!shemmingeraba5acd2004-04-15 20:56:59 +000012
Julian Anastasov8afcc282012-09-11 12:04:33 +030013NLOBJ=libgenl.o ll_map.o libnetlink.o
osdl.org!shemmingeraba5acd2004-04-15 20:56:59 +000014
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