diff options
author | Damien George <damien.p.george@gmail.com> | 2014-09-06 23:06:36 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-09-06 23:06:36 +0100 |
commit | c90f59ec3a4c77848f36c710ed4ab8d55a944a0c (patch) | |
tree | afa66e5e0feb34232212f676c1a85ee9b132ddbc /py/py.mk | |
parent | 33b50a02176bcf4f7114498f9925003808d6e53f (diff) | |
download | micropython-c90f59ec3a4c77848f36c710ed4ab8d55a944a0c.tar.gz micropython-c90f59ec3a4c77848f36c710ed4ab8d55a944a0c.zip |
py: Add support for emitting native x86 machine code.
Diffstat (limited to 'py/py.mk')
-rw-r--r-- | py/py.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,6 +35,8 @@ PY_O_BASENAME = \ emitbc.o \ asmx64.o \ emitnx64.o \ + asmx86.o \ + emitnx86.o \ asmthumb.o \ emitnthumb.o \ emitinlinethumb.o \ @@ -145,6 +147,10 @@ $(PY_BUILD)/emitnx64.o: CFLAGS += -DN_X64 $(PY_BUILD)/emitnx64.o: py/emitnative.c $(call compile_c) +$(PY_BUILD)/emitnx86.o: CFLAGS += -DN_X86 +$(PY_BUILD)/emitnx86.o: py/emitnative.c + $(call compile_c) + $(PY_BUILD)/emitnthumb.o: CFLAGS += -DN_THUMB $(PY_BUILD)/emitnthumb.o: py/emitnative.c $(call compile_c) |