Skip to content

Commit

Permalink
Install static and shared library as an executable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Chvátal committed Jan 20, 2020
1 parent c073e7d commit b43c1de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions c/Makefile
Expand Up @@ -77,15 +77,15 @@ clean:

install-shared: $(LIBFILE)
install -d $(LIBDIR) || true
install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME)
install -m 0755 $(LIBFILE) $(LIBDIR)/$(REAL_NAME)
rm -f $(LIBDIR)/$(SO_NAME)
ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME)
rm -f $(LIBDIR)/$(LIBFILE)
ln -s $(SO_NAME) $(LIBDIR)/$(LIBFILE)

install-static: $(ARFILE)
install -d $(LIBDIR) || true
install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE)
install -m 0755 $(ARFILE) $(LIBDIR)/$(ARFILE)

install-header: $(HEADERS)
install -d $(INCLUDEDIR) || true
Expand Down
4 changes: 2 additions & 2 deletions cpp/Makefile
Expand Up @@ -78,15 +78,15 @@ clean:

install-shared: $(LIBFILE)
install -d $(LIBDIR) || true
install -m 0644 $(LIBFILE) $(LIBDIR)/$(REAL_NAME)
install -m 0755 $(LIBFILE) $(LIBDIR)/$(REAL_NAME)
rm -f $(LIBDIR)/$(SO_NAME)
ln -s $(REAL_NAME) $(LIBDIR)/$(SO_NAME)
rm -f $(LIBDIR)/$(LIBFILE)
ln -s $(SO_NAME) $(LIBDIR)/$(LIBFILE)

install-static: $(ARFILE)
install -d $(LIBDIR) || true
install -m 0644 $(ARFILE) $(LIBDIR)/$(ARFILE)
install -m 0755 $(ARFILE) $(LIBDIR)/$(ARFILE)

install-header: $(HEADERS)
install -d $(INCLUDEDIR) || true
Expand Down

0 comments on commit b43c1de

Please sign in to comment.