From 2cd6ec514cf4747c299c50b29bc8c22cafe2eb43 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 1 Mar 2014 17:11:06 -0800 Subject: Add a separate flag/define for disabling the Z80 at compile time to ease refactoring --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8d4b079..f0ef918 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ else ifeq ($(CPU),i686) M68KOBJS+= runtime_32.o TRANSOBJS+= gen_x86.o +NOZ80:=1 endif endif @@ -44,13 +45,18 @@ MAINOBJS=blastem.o debug.o gdb_remote.o vdp.o render_sdl.o io.o $(CONFIGOBJS) gs ifeq ($(CPU),x86_64) CFLAGS+=-DX86_64 -MAINOBJS+= $(Z80OBJS) else ifeq ($(CPU),i686) CFLAGS+=-DX86_32 endif endif +ifdef NOZ80 +CFLAGS+=-DNO_Z80 +else +MAINOBJS+= $(Z80OBJS) +endif + all : dis zdis stateview vgmplay blastem -- cgit v1.2.3