Mike Frysinger | 691c8a6 | 2012-12-16 17:09:16 -0500 | [diff] [blame] | 1 | include ../Config |
| 2 | |
Vadim Kochan | eb67e44 | 2014-12-24 23:04:08 +0200 | [diff] [blame] | 3 | ifeq ($(IP_CONFIG_SETNS),y) |
| 4 | CFLAGS += -DHAVE_SETNS |
| 5 | endif |
| 6 | |
Andreas Henriksson | 6837f77 | 2009-11-23 11:03:52 +0100 | [diff] [blame] | 7 | CFLAGS += -fPIC |
osdl.org!shemminger | aba5acd | 2004-04-15 20:56:59 +0000 | [diff] [blame] | 8 | |
Stephen Hemminger | fcc16c2 | 2015-08-21 14:14:51 -0700 | [diff] [blame] | 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 \ |
Mathias Nyman | d7bd2db | 2015-04-28 13:18:21 +0300 | [diff] [blame] | 11 | names.o color.o |
osdl.org!shemminger | aba5acd | 2004-04-15 20:56:59 +0000 | [diff] [blame] | 12 | |
Julian Anastasov | 8afcc28 | 2012-09-11 12:04:33 +0300 | [diff] [blame] | 13 | NLOBJ=libgenl.o ll_map.o libnetlink.o |
osdl.org!shemminger | aba5acd | 2004-04-15 20:56:59 +0000 | [diff] [blame] | 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 | |