diff Makefile @ 550:96489fb27dbf

Apart from the Z80 core, BlastEm now supports 32-bit x86
author Michael Pavone <pavone@retrodev.com>
date Wed, 19 Feb 2014 00:22:27 -0800
parents a3afee2271ce
children 0687b05061dd
line wrap: on
line diff
--- a/Makefile	Tue Feb 18 23:19:07 2014 -0800
+++ b/Makefile	Wed Feb 19 00:22:27 2014 -0800
@@ -22,8 +22,18 @@
 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