comparison Makefile @ 565:9324f721efa6

Add a separate flag/define for disabling the Z80 at compile time to ease refactoring
author Michael Pavone <pavone@retrodev.com>
date Sat, 01 Mar 2014 17:11:06 -0800
parents c8fefa140c80
children 19e517735215
comparison
equal deleted inserted replaced
564:316facea756d 565:9324f721efa6
31 TRANSOBJS+= gen_x86.o 31 TRANSOBJS+= gen_x86.o
32 else 32 else
33 ifeq ($(CPU),i686) 33 ifeq ($(CPU),i686)
34 M68KOBJS+= runtime_32.o 34 M68KOBJS+= runtime_32.o
35 TRANSOBJS+= gen_x86.o 35 TRANSOBJS+= gen_x86.o
36 NOZ80:=1
36 endif 37 endif
37 endif 38 endif
38 39
39 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o 40 Z80OBJS=z80inst.o z80_to_x86.o zruntime.o
40 AUDIOOBJS=ym2612.o psg.o wave.o 41 AUDIOOBJS=ym2612.o psg.o wave.o
42 43
43 MAINOBJS=blastem.o debug.o gdb_remote.o vdp.o render_sdl.o io.o $(CONFIGOBJS) gst.o $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS) 44 MAINOBJS=blastem.o debug.o gdb_remote.o vdp.o render_sdl.o io.o $(CONFIGOBJS) gst.o $(M68KOBJS) $(TRANSOBJS) $(AUDIOOBJS)
44 45
45 ifeq ($(CPU),x86_64) 46 ifeq ($(CPU),x86_64)
46 CFLAGS+=-DX86_64 47 CFLAGS+=-DX86_64
47 MAINOBJS+= $(Z80OBJS)
48 else 48 else
49 ifeq ($(CPU),i686) 49 ifeq ($(CPU),i686)
50 CFLAGS+=-DX86_32 50 CFLAGS+=-DX86_32
51 endif 51 endif
52 endif
53
54 ifdef NOZ80
55 CFLAGS+=-DNO_Z80
56 else
57 MAINOBJS+= $(Z80OBJS)
52 endif 58 endif
53 59
54 60
55 all : dis zdis stateview vgmplay blastem 61 all : dis zdis stateview vgmplay blastem
56 62