From: Jonh Wendell <jonh.wendell@gmail.com>
To: netfilter-devel@vger.kernel.org
Cc: Jonh Wendell <jonh.wendell@oiwifi.com.br>
Subject: [PATCH] arptables: build an libarptc.a archive
Date: Thu, 21 Feb 2013 20:45:36 -0300 [thread overview]
Message-ID: <1361490336-4676-1-git-send-email-jonh.wendell@gmail.com> (raw)
From: Jonh Wendell <jonh.wendell@oiwifi.com.br>
this allows programs to statically link against libarptc.
Signed-off-by: Jonh Wendell <jonh.wendell@oiwifi.com.br>
---
userspace/arptables/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/userspace/arptables/Makefile b/userspace/arptables/Makefile
index 9a7bea4..38158d9 100644
--- a/userspace/arptables/Makefile
+++ b/userspace/arptables/Makefile
@@ -19,7 +19,7 @@ endif
include extensions/Makefile
-all: arptables
+all: arptables libarptc/libarptc.a
arptables.o: arptables.c
$(CC) $(CFLAGS) -c -o $@ $<
@@ -30,6 +30,9 @@ arptables-standalone.o: arptables-standalone.c
libarptc/libarptc.o: libarptc/libarptc.c libarptc/libarptc_incl.c
$(CC) $(CFLAGS) -c -o $@ $<
+libarptc/libarptc.a: libarptc/libarptc.o
+ $(AR) rcs $@ $<
+
arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
@@ -62,7 +65,7 @@ clean:
rm -f arptables
rm -f *.o *~
rm -f extensions/*.o extensions/*~
- rm -f libarptc/*.o libarptc/*~
+ rm -f libarptc/*.o libarptc/*~ libarptc/*.a
rm -f include/*~ include/libarptc/*~
DIR:=arptables-v$(ARPTABLES_VERSION)
--
1.8.1.2
next reply other threads:[~2013-02-21 23:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 23:45 Jonh Wendell [this message]
2013-02-22 8:50 ` [PATCH] arptables: build an libarptc.a archive Jan Engelhardt
2013-02-24 10:09 ` Bart De Schuymer
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=1361490336-4676-1-git-send-email-jonh.wendell@gmail.com \
--to=jonh.wendell@gmail.com \
--cc=jonh.wendell@oiwifi.com.br \
--cc=netfilter-devel@vger.kernel.org \
/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).