aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-16 19:32:02 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-16 19:32:09 +0200
commit925c0658282d302162b48241694a54c85c44610b (patch)
tree72b8437caedf8e83acd4154fde22296af1dd7574
parentmakefile: symlinks for .so file (diff)
downloadbus-925c0658282d302162b48241694a54c85c44610b.tar.gz
bus-925c0658282d302162b48241694a54c85c44610b.tar.bz2
bus-925c0658282d302162b48241694a54c85c44610b.tar.xz
makefile: static lib
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9e75ef2..cc31abe 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,12 @@ LIB_VERSION = ${LIB_MAJOR}.${LIB_MINOR}
all: bus
-bus: bin/bus bin/libbus.so.$(LIB_VERSION) bin/libbus.so.$(LIB_MAJOR) bin/libbus.so
+bus: bin/bus bin/libbus.so.$(LIB_VERSION) bin/libbus.so.$(LIB_MAJOR) bin/libbus.so bin/libbus.a
+
+bin/libbus.a: obj/bus-fpic.o
+ @echo AR $@
+ @mkdir -p bin
+ @ar rcs $@ $^
bin/bus: obj/cmdline-nofpic.o obj/bus-nofpic.o
@echo CC -o $@