From: yegorslists@googlemail.com
To: netdev@vger.kernel.org
Cc: shemminger@vyatta.com, Yegor Yefremov <yegorslists@googlemail.com>
Subject: [PATCH] iproute2: cleanup dependencies
Date: Mon, 27 Feb 2012 15:21:15 +0100 [thread overview]
Message-ID: <1330352475-31109-1-git-send-email-yegorslists@googlemail.com> (raw)
From: Yegor Yefremov <yegorslists@googlemail.com>
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 <yegorslists@googlemail.com>
---
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 3f8c25b..e029ea1 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 8c25381..a59ff87 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 9cc1bf0..f523adc 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)
--
1.7.7
next reply other threads:[~2012-02-27 14:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-27 14:21 yegorslists [this message]
2012-02-27 16:29 ` [PATCH] iproute2: cleanup dependencies Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1330352475-31109-1-git-send-email-yegorslists@googlemail.com \
--to=yegorslists@googlemail.com \
--cc=netdev@vger.kernel.org \
--cc=shemminger@vyatta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).