ref: 06fbf808db2fc928cd36ab20b1dbef1cfeeeddc6
parent: 7632510209e6cb242dcc0fa4a47a221ac72ad00c
parent: a614ee1b507b894f86bf31f8df84a62f4fbd2b81
author: Ethan Hugg <[email protected]>
date: Fri Mar 7 04:17:57 EST 2014
Merge pull request #451 from mstorsjo/install-static-only Add separate install-static and install-shared targets
--- a/Makefile
+++ b/Makefile
@@ -129,15 +129,23 @@
$(QUIET)rm -f $@
$(QUIET_CXX)$(CXX) $(SHARED) $(LDFLAGS) $(CXX_LINK_O) $+ $(SHLDFLAGS)
-install: $(LIBPREFIX)wels.$(LIBSUFFIX) $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX)
- mkdir -p $(PREFIX)/lib
+install-headers:
mkdir -p $(PREFIX)/include/wels
+ install -m 644 codec/api/svc/codec*.h $(PREFIX)/include/wels
+
+install-static: $(LIBPREFIX)wels.$(LIBSUFFIX) install-headers
+ mkdir -p $(PREFIX)/lib
install -m 644 $(LIBPREFIX)wels.$(LIBSUFFIX) $(PREFIX)/lib
+
+install-shared: $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX) install-headers
+ mkdir -p $(PREFIX)/lib
install -m 755 $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX) $(PREFIX)/lib
ifneq ($(EXTRA_LIBRARY),)
install -m 644 $(EXTRA_LIBRARY) $(PREFIX)/lib
endif
- install -m 644 codec/api/svc/codec*.h $(PREFIX)/include/wels
+
+install: install-static install-shared
+ @:
ifeq ($(HAVE_GTEST),Yes)
include build/gtest-targets.mk