File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4343INSTALL_TARGETS += $(bindir ) /cbordump
4444ifeq ($(BUILD_SHARED ) ,1)
4545BINLIBRARY =lib/libtinycbor.so
46- INSTALL_TARGETS += $(libdir ) /libtinycbor.so
47- INSTALL_TARGETS += $(libdir ) /libtinycbor.so.$(SOVERSION )
4846INSTALL_TARGETS += $(libdir ) /libtinycbor.so.$(VERSION )
4947endif
5048ifeq ($(BUILD_STATIC ) ,1)
@@ -190,8 +188,15 @@ install-strip:
190188 $(MAKE ) -f $(MAKEFILE ) INSTALL_PROGRAM=' $(INSTALL_PROGRAM) -s' install
191189
192190install : $(INSTALL_TARGETS:%=$(DESTDIR ) % )
191+ ifeq ($(BUILD_SHARED ) ,1)
192+ ln -sf libtinycbor.so.$(VERSION) $(DESTDIR)$(libdir)/libtinycbor.so
193+ ln -sf libtinycbor.so.$(VERSION) $(DESTDIR)$(libdir)/libtinycbor.so.$(SOVERSION)
194+ endif
195+
193196uninstall :
194197 $(RM ) $(INSTALL_TARGETS:%=$(DESTDIR ) % )
198+ $(RM ) $(DESTDIR )$(libdir ) /libtinycbor.so
199+ $(RM ) $(DESTDIR )$(libdir ) /libtinycbor.so.$(SOVERSION )
195200
196201mostlyclean :
197202 $(RM ) $(TINYCBOR_SOURCES:.c=.o )
You can’t perform that action at this time.
0 commit comments