Skip to content

Commit 1f61fe0

Browse files
committed
py/mkrules.mk: Allow to override name of libmicropython.a
Or alternatively, refer to an exact library file, not just phony target "lib".
1 parent bae62d9 commit 1f61fe0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

py/mkrules.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ clean-prog:
123123
.PHONY: clean-prog
124124
endif
125125

126-
lib: $(OBJ)
127-
$(AR) rcs libmicropython.a $^
126+
LIBMICROPYTHON = libmicropython.a
127+
lib $(LIBMICROPYTHON): $(OBJ)
128+
$(AR) rcs $(LIBMICROPYTHON) $^
128129

129130
clean:
130131
$(RM) -rf $(BUILD) $(CLEAN_EXTRA)

0 commit comments

Comments
 (0)