summaryrefslogtreecommitdiffstats
path: root/userspace/arptables
diff options
context:
space:
mode:
authorJonh Wendell <jonh.wendell@oiwifi.com.br>2013-02-24 10:53:52 +0100
committerBart De Schuymer <bdschuym@pandora.be>2013-02-24 10:53:52 +0100
commit080e3f7e85342cfb74453c8f992ab2e930edb956 (patch)
treed54d86c8c75da00dc864f984d91bbf9bb1c00a1e /userspace/arptables
parenteb989eb5ede36becb17831b05dd592ad7cf8cfd8 (diff)
build an libarptc.a archive
this allows programs to statically link against libarptc.
Diffstat (limited to 'userspace/arptables')
-rw-r--r--userspace/arptables/Makefile7
1 files 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)