mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 19:11:22 +00:00
Add lnstat to replace rtstat.
(Logical change 1.98)
This commit is contained in:
parent
056eb9d8dd
commit
9783e0d4f0
@ -1,16 +1,10 @@
|
||||
SSOBJ=ss.o ssfilter.o
|
||||
LNSTATOBJ=lnstat.o lnstat_util.o
|
||||
|
||||
TARGETS=ss nstat ifstat rtacct arpd rtstat
|
||||
TARGETS=ss nstat ifstat rtacct arpd lnstat
|
||||
|
||||
include ../Config
|
||||
|
||||
ifeq ($(SS_CONFIG_VEGAS),y)
|
||||
DEFINES += -DHAVE_TCP_VEGAS
|
||||
endif
|
||||
ifeq ($(SS_CONFIG_DRS),y)
|
||||
DEFINES += -DHAVE_TCP_DRS
|
||||
endif
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
ss: $(SSOBJ) $(LIBUTIL)
|
||||
@ -27,14 +21,15 @@ rtacct: rtacct.c
|
||||
arpd: arpd.c
|
||||
$(CC) $(CFLAGS) -I$(DBM_INCLUDE) $(LDFLAGS) -o arpd arpd.c $(LIBNETLINK) -ldb -lpthread
|
||||
|
||||
rtstat: rtstat.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o rtstat rtstat.c
|
||||
|
||||
ssfilter.c: ssfilter.y
|
||||
bison ssfilter.y -o ssfilter.c
|
||||
|
||||
install: all
|
||||
lnstat: $(LNSTATOBJ)
|
||||
|
||||
install: all
|
||||
install -m 0755 -s $(TARGETS) $(DESTDIR)$(SBINDIR)
|
||||
ln -sf $(SBINDIR)/lnstat $(DESTDIR)$(SBINDIR)/rtstat
|
||||
ln -sf $(SBINDIR)/lnstat $(DESTDIR)$(SBINDIR)/ctstat
|
||||
|
||||
clean:
|
||||
rm -f *.o $(TARGETS) ssfilter.c
|
||||
|
||||
Loading…
Reference in New Issue
Block a user