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 .PHONY: clean-prog
endif endif
lib: $(OBJ) LIBMICROPYTHON = libmicropython.a
$(AR) rcs libmicropython.a $^ lib $(LIBMICROPYTHON): $(OBJ)
$(AR) rcs $(LIBMICROPYTHON) $^
clean: clean:
$(RM) -rf $(BUILD) $(CLEAN_EXTRA) $(RM) -rf $(BUILD) $(CLEAN_EXTRA)