mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-08 11:04:05 +00:00

Similar to the Linux kernel and perf add infrastructure to reduce the amount of output tossed to a user during a build. Full build output can be obtained with 'make V=1' Builds go from: make[1]: Leaving directory `/home/dsa/iproute2.git/lib' make[1]: Entering directory `/home/dsa/iproute2.git/ip' gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -o ip.o ip.c gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -o ipaddress.o ipaddress.c to: ... AR libutil.a ip CC ip.o CC ipaddress.o ... Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
28 lines
477 B
Makefile
28 lines
477 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 json_writer.o \
|
|
names.o color.o
|
|
|
|
NLOBJ=libgenl.o ll_map.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
|
|
|