diff options
| author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-12 14:42:05 +0300 |
|---|---|---|
| committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-12 15:32:06 +0300 |
| commit | 408b74d74ce8de806f8718a02d350b8326d89361 (patch) | |
| tree | 7f9ac6bc203a80162765a99a451d832351b939dc /py/mkrules.mk | |
| parent | fdfcee7b1e321637767aaddfb781f66d0ffdc9a5 (diff) | |
py: Allow to to build MicroPython as a static library.
The whole current port gets slurped into a static lib named
"libmicropython.a". Maybe that's not ideal, but at least something
to start with.
Diffstat (limited to 'py/mkrules.mk')
| -rw-r--r-- | py/mkrules.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/mkrules.mk b/py/mkrules.mk index fe70a0ee3..18bfd9847 100644 --- a/py/mkrules.mk +++ b/py/mkrules.mk @@ -87,6 +87,9 @@ ifndef DEBUG endif $(Q)$(SIZE) $(PROG) +lib: $(OBJ) + $(AR) rcs libmicropython.a $(OBJ) + clean: clean-prog clean-prog: $(RM) -f $(PROG) |
