From 8ced4fcd50dbbf7a0219ff5705390e6f89ba434c Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Mon, 27 Feb 2012 15:21:15 +0100 Subject: [PATCH] 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: Yegor Yefremov --- ip/Makefile | 7 ++++--- misc/Makefile | 2 +- tc/Makefile | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ip/Makefile b/ip/Makefile index 3f8c25b8..e029ea1c 100644 --- a/ip/Makefile +++ b/ip/Makefile @@ -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) diff --git a/misc/Makefile b/misc/Makefile index 8c253815..a59ff871 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -7,7 +7,7 @@ include ../Config all: $(TARGETS) -ss: $(SSOBJ) $(LIBUTIL) +ss: $(SSOBJ) nstat: nstat.c $(CC) $(CFLAGS) $(LDFLAGS) -o nstat nstat.c -lm diff --git a/tc/Makefile b/tc/Makefile index 9cc1bf0f..f523adc1 100644 --- a/tc/Makefile +++ b/tc/Makefile @@ -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)