mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 17:15:51 +00:00
New netns_switch func moved to the lib/namespace.c from ip/ipnetns.c so it can be used from the other tools for fast switching network namespace. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us>
26 lines
441 B
Makefile
26 lines
441 B
Makefile
include ../Config
|
|
|
|
ifeq ($(IP_CONFIG_SETNS),y)
|
|
CFLAGS += -DHAVE_SETNS
|
|
endif
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
UTILOBJ=utils.o rt_names.o ll_types.o ll_proto.o ll_addr.o inet_proto.o namespace.o
|
|
|
|
NLOBJ=libgenl.o ll_map.o libnetlink.o
|
|
|
|
all: libnetlink.a libutil.a
|
|
|
|
libnetlink.a: $(NLOBJ)
|
|
$(AR) rcs $@ $(NLOBJ)
|
|
|
|
libutil.a: $(UTILOBJ) $(ADDLIB)
|
|
$(AR) rcs $@ $(UTILOBJ) $(ADDLIB)
|
|
|
|
install:
|
|
|
|
clean:
|
|
rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
|
|
|