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 7, 2020
1 parent 0087662 commit 1ef0adb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions c/Makefile
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 1ef0adb

Please sign in to comment.