mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-27 11:54:53 +08:00
e246ebc3b7
ss provides some selinux stub functions, useful when iproute2 is compiled without selinux support. Move them to lib/ so we can use them in other iproute2 tools. Signed-off-by: Andrea Claudi <aclaudi@redhat.com> Signed-off-by: David Ahern <dsahern@kernel.org>
37 lines
740 B
Makefile
37 lines
740 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
include ../config.mk
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
UTILOBJ = utils.o utils_math.o rt_names.o ll_map.o ll_types.o ll_proto.o ll_addr.o \
|
|
inet_proto.o namespace.o json_writer.o json_print.o json_print_math.o \
|
|
names.o color.o bpf_legacy.o bpf_glue.o exec.o fs.o cg_map.o ppp_proto.o
|
|
|
|
ifeq ($(HAVE_ELF),y)
|
|
ifeq ($(HAVE_LIBBPF),y)
|
|
UTILOBJ += bpf_libbpf.o
|
|
endif
|
|
endif
|
|
|
|
ifneq ($(HAVE_SELINUX),y)
|
|
UTILOBJ += selinux.o
|
|
endif
|
|
|
|
NLOBJ=libgenl.o libnetlink.o
|
|
ifeq ($(HAVE_MNL),y)
|
|
NLOBJ += mnl_utils.o
|
|
endif
|
|
|
|
all: libnetlink.a libutil.a
|
|
|
|
libnetlink.a: $(NLOBJ)
|
|
$(QUIET_AR)$(AR) rcs $@ $^
|
|
|
|
libutil.a: $(UTILOBJ) $(ADDLIB)
|
|
$(QUIET_AR)$(AR) rcs $@ $^
|
|
|
|
install:
|
|
|
|
clean:
|
|
rm -f $(NLOBJ) $(UTILOBJ) $(ADDLIB) libnetlink.a libutil.a
|