summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-19 00:22:27 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-19 00:22:27 -0800
commit9383ce79b4f1f006cb1a7f62f1fcc8016e31ad04 (patch)
tree8a70506e352fc1915ac630debeab3a03f5b55024 /Makefile
parent33910344b7546f27baba85921c0c7bdd70b1b0a9 (diff)
Apart from the Z80 core, BlastEm now supports 32-bit x86
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cfa28c0..f8b6c72 100644
--- a/Makefile
+++ b/Makefile
@@ -22,8 +22,18 @@ ifndef CPU
CPU:=$(shell uname -m)
endif
+
+
TRANSOBJS=gen_x86.o x86_backend.o mem.o
-M68KOBJS=68kinst.o m68k_to_x86.o runtime.o
+M68KOBJS=68kinst.o m68k_to_x86.o
+ifeq ($(CPU),x86_64)
+M68kOBJS+= runtime.o
+else
+ifeq ($(CPU),i686)
+M68KOBJS+= runtime_32.o
+endif
+endif
+
Z80OBJS=z80inst.o z80_to_x86.o zruntime.o
AUDIOOBJS=ym2612.o psg.o wave.o
CONFIGOBJS=config.o tern.o util.o