Commit 8ced4fcd authored by Yegor Yefremov's avatar Yegor Yefremov Committed by Stephen Hemminger

iproute2: cleanup dependencies

LIBNETLINK will be defined in the main Makefile, so
both ../lib/libnetlink.a ../lib/libutil.a will be
automatically appended during linking. Otherwise
../lib/libnetlink.a ../lib/libutil.a will appear
twice during linking.
Signed-off-by: default avatarYegor Yefremov <yegorslists@googlemail.com>
parent e2a4536a
......@@ -17,11 +17,12 @@ ALLOBJ=$(IPOBJ) $(RTMONOBJ)
SCRIPTS=ifcfg rtpr routel routef
TARGETS=ip rtmon
all: $(TARGETS) $(SCRIPTS) $(LIBS)
all: $(TARGETS) $(SCRIPTS)
ip: $(IPOBJ) $(LIBNETLINK) $(LIBUTIL)
ip: $(IPOBJ) $(LIBNETLINK)
rtmon: $(RTMONOBJ) $(LIBNETLINK)
rtmon: $(RTMONOBJ)
install: all
install -m 0755 $(TARGETS) $(DESTDIR)$(SBINDIR)
......
......@@ -7,7 +7,7 @@ include ../Config
all: $(TARGETS)
ss: $(SSOBJ) $(LIBUTIL)
ss: $(SSOBJ)
nstat: nstat.c
$(CC) $(CFLAGS) $(LDFLAGS) -o nstat nstat.c -lm
......
......@@ -99,7 +99,7 @@ MODDESTDIR := $(DESTDIR)$(patsubst /usr%,%,$(LIBDIR))/tc
all: libtc.a tc $(TCSO)
tc: $(TCOBJ) $(LIBNETLINK) $(LIBUTIL) $(TCLIB)
tc: $(TCOBJ) $(TCLIB)
libtc.a: $(TCLIB)
$(AR) rcs $@ $(TCLIB)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment