Add an optional strip step to the Makefile
It can be used like: > make clean && make -j CC=clang AR=llvm-ar STRIP=llvm-strip
This commit is contained in:
parent
5e3df64a46
commit
113d100250
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
|
@ -50,6 +50,9 @@ libtree-sitter.$(SOEXTVER): $(OBJ)
|
|||
$(CC) $(LDFLAGS) $(LINKSHARED) $^ $(LDLIBS) -o $@
|
||||
ln -sf $@ libtree-sitter.$(SOEXT)
|
||||
ln -sf $@ libtree-sitter.$(SOEXTVER_MAJOR)
|
||||
ifneq ($(STRIP),)
|
||||
$(STRIP) $@
|
||||
endif
|
||||
|
||||
install: all
|
||||
install -d '$(DESTDIR)$(LIBDIR)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue