py/mkrules.mk: Allow to override name of libmicropython.a

Or alternatively, refer to an exact library file, not just phony target
"lib".
This commit is contained in:
Paul Sokolovsky 2016-08-30 00:59:17 +03:00
parent bae62d9abe
commit 1f61fe07a2

View File

@ -123,8 +123,9 @@ clean-prog:
.PHONY: clean-prog
endif
lib: $(OBJ)
$(AR) rcs libmicropython.a $^
LIBMICROPYTHON = libmicropython.a
lib $(LIBMICROPYTHON): $(OBJ)
$(AR) rcs $(LIBMICROPYTHON) $^
clean:
$(RM) -rf $(BUILD) $(CLEAN_EXTRA)