aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-16 19:30:29 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-16 19:30:29 +0200
commitc1720462b5f9b8f4673f2e60c091ba43997aa8dd (patch)
tree31bbb76ab66363878471a43827a0ce68455f441b
parentadd soname to .so file (diff)
downloadbus-c1720462b5f9b8f4673f2e60c091ba43997aa8dd.tar.gz
bus-c1720462b5f9b8f4673f2e60c091ba43997aa8dd.tar.bz2
bus-c1720462b5f9b8f4673f2e60c091ba43997aa8dd.tar.xz
makefile: symlinks for .so file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eedb726..9e75ef2 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ LIB_VERSION = ${LIB_MAJOR}.${LIB_MINOR}
all: bus
-bus: bin/bus bin/libbus.so.$(LIB_MAJOR)
+bus: bin/bus bin/libbus.so.$(LIB_VERSION) bin/libbus.so.$(LIB_MAJOR) bin/libbus.so
bin/bus: obj/cmdline-nofpic.o obj/bus-nofpic.o
@echo CC -o $@
@@ -22,6 +22,16 @@ bin/libbus.so.${LIB_VERSION}: obj/bus-fpic.o
@mkdir -p bin
@${CC} ${FLAGS} -shared -Wl,-soname,libbus.so.${LIB_MAJOR} -o $@ $^ ${LDFLAGS}
+bin/libbus.so.${LIB_MAJOR}:
+ @echo LN -s $@
+ @mkdir -p bin
+ @ln -sf libbus.so.${LIB_VERSION} $@
+
+bin/libbus.so:
+ @echo LN -s $@
+ @mkdir -p bin
+ @ln -sf libbus.so.${LIB_VERSION} $@
+
obj/%-nofpic.o: src/%.c src/*.h
@echo CC -c $@
@mkdir -p obj