summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMaksym Telychko <maksym.telychko@globallogic.com>2019-06-07 12:35:49 +0300
committerMaksym Telychko <maksym.telychko@globallogic.com>2019-06-07 12:35:49 +0300
commit936d8d57853e1ffbe1f46874b7ba9194e26cccb9 (patch)
tree855227b1d68b03bce458d014aba0a17d340159a5 /Makefile
parent417049f51180b3b4be84fbc0d86a3c690972fb3b (diff)
downloadlibmts-io-936d8d57853e1ffbe1f46874b7ba9194e26cccb9.tar.gz
libmts-io-936d8d57853e1ffbe1f46874b7ba9194e26cccb9.tar.bz2
libmts-io-936d8d57853e1ffbe1f46874b7ba9194e26cccb9.zip
[MTS-MTQ] refactoring makefile: so name fix for dynamic linking
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 6c09bff..ddc7a7a 100644
--- a/Makefile
+++ b/Makefile
@@ -47,13 +47,12 @@ LDFLAGS += -s -shared -Wl,-soname,$(APPNAME).so.0
.PHONY: all clean install
-all: $(APPNAME).a $(APPNAME).so.$(VERSION)
-
+all: $(APPNAME).a $(APPNAME).so
$(APPNAME).a: $(OBJS)
$(AR) -r $@ $?
-$(APPNAME).so.$(VERSION): $(OBJS)
+$(APPNAME).so: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $? $(LDLIBS)
# Handle header dependencies
@@ -64,12 +63,10 @@ CPPFLAGS += -MMD
install:
mkdir -p $(DESTDIR)$(libdir)
mkdir -p $(DESTDIR)$(includedir)/mts
- install -m 0644 $(APPNAME).a $(APPNAME).so.$(VERSION) $(DESTDIR)$(libdir)/
- ln -sf $(APPNAME).so.$(VERSION) $(DESTDIR)$(libdir)/$(APPNAME).so.0
+ install -m 0644 $(APPNAME).a $(APPNAME).so $(DESTDIR)$(libdir)/
+ ln -sf $(APPNAME).so $(DESTDIR)$(libdir)/$(APPNAME).so.0
ln -sf $(APPNAME).so.0 $(DESTDIR)$(libdir)/$(APPNAME).so
install -m 0644 include/mts/* $(DESTDIR)$(includedir)/mts/
clean:
- $(RM) $(OBJS) $(APPNAME).a $(APPNAME).so.$(VERSION) $(DEPS)
-
-
+ $(RM) $(OBJS) $(APPNAME).a $(APPNAME).so $(DEPS)