mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-18 18:31:07 +00:00

Neither internal libnetlink nor libgenl depends on ll_map.o: prepare for upcoming changes that brings much more cleaner dependency between utils.o and ll_map.o. However ll_map.o depends on libnetlink.o functions so we need to provide libnetlink.a after libutil.a in LIBNETLINK at global Makefile. Tested using make clean && make -j4. No problems so far. Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: David Ahern <dsahern@gmail.com>
24 lines
486 B
Makefile
24 lines
486 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
include ../config.mk
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
UTILOBJ = utils.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 \
|
|
names.o color.o bpf.o exec.o fs.o
|
|
|
|
NLOBJ=libgenl.o libnetlink.o
|
|
|
|
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
|