Split library install target into pc, static, shared and include only target
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
This commit is contained in:
parent
a11f0c67bb
commit
64bfdca5b9
15
lib/Makefile
15
lib/Makefile
@ -159,20 +159,29 @@ libzstd.pc: libzstd.pc.in
|
|||||||
-e 's|@VERSION@|$(VERSION)|' \
|
-e 's|@VERSION@|$(VERSION)|' \
|
||||||
$< >$@
|
$< >$@
|
||||||
|
|
||||||
install: libzstd.a libzstd libzstd.pc
|
install: install-pc install-static install-shared install-includes
|
||||||
|
@echo zstd static and shared library installed
|
||||||
|
|
||||||
|
install-pc: libzstd.pc
|
||||||
@$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/
|
@$(INSTALL) -d -m 755 $(DESTDIR)$(PKGCONFIGDIR)/ $(DESTDIR)$(INCLUDEDIR)/
|
||||||
@$(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/
|
@$(INSTALL_DATA) libzstd.pc $(DESTDIR)$(PKGCONFIGDIR)/
|
||||||
@echo Installing libraries
|
|
||||||
|
install-static: libzstd.a
|
||||||
|
@echo Installing static library
|
||||||
@$(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
|
@$(INSTALL_DATA) libzstd.a $(DESTDIR)$(LIBDIR)
|
||||||
|
|
||||||
|
install-shared: libzstd
|
||||||
|
@echo Installing shared library
|
||||||
@$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
|
@$(INSTALL_PROGRAM) $(LIBZSTD) $(DESTDIR)$(LIBDIR)
|
||||||
@ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
|
@ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_MAJOR)
|
||||||
@ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
|
@ln -sf $(LIBZSTD) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT)
|
||||||
|
|
||||||
|
install-includes:
|
||||||
@echo Installing includes
|
@echo Installing includes
|
||||||
@$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR)
|
@$(INSTALL_DATA) zstd.h $(DESTDIR)$(INCLUDEDIR)
|
||||||
@$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR)
|
@$(INSTALL_DATA) common/zstd_errors.h $(DESTDIR)$(INCLUDEDIR)
|
||||||
@$(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings
|
@$(INSTALL_DATA) deprecated/zbuff.h $(DESTDIR)$(INCLUDEDIR) # prototypes generate deprecation warnings
|
||||||
@$(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)
|
@$(INSTALL_DATA) dictBuilder/zdict.h $(DESTDIR)$(INCLUDEDIR)
|
||||||
@echo zstd static and shared library installed
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@$(RM) $(DESTDIR)$(LIBDIR)/libzstd.a
|
@$(RM) $(DESTDIR)$(LIBDIR)/libzstd.a
|
||||||
|
Loading…
Reference in New Issue
Block a user