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:
Andrew Hlynskyi 2023-08-17 15:39:14 +03:00
parent 5e3df64a46
commit 113d100250

View file

@ -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)'