Mercurial > repos > blastem
diff Makefile @ 2595:eb4b37c14c93
Default to new interpreter when non-x86 CPU detected
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 09 Feb 2025 20:36:06 -0800 |
parents | 639561060a28 |
children | 251cc75574af |
line wrap: on
line diff
--- a/Makefile Sun Feb 09 18:07:40 2025 -0800 +++ b/Makefile Sun Feb 09 20:36:06 2025 -0800 @@ -203,6 +203,17 @@ CPU:=i686 endif endif +ifeq ($(CPU),x86_64) +CFLAGS+=-DX86_64 -m64 +LDFLAGS+=-m64 +else +ifeq ($(CPU),i686) +CFLAGS+=-DX86_32 -m32 +LDFLAGS+=-m32 +else +NEW_CORE:=1 +endif +endif TRANSOBJS=gen.o backend.o $(MEM) arena.o tern.o M68KOBJS=68kinst.o disasm.o @@ -260,18 +271,6 @@ LDFLAGS+=$(EXTRA_NUKLEAR_LDFLAGS) endif -ifeq ($(CPU),x86_64) -CFLAGS+=-DX86_64 -m64 -LDFLAGS+=-m64 -else -ifeq ($(CPU),i686) -CFLAGS+=-DX86_32 -m32 -LDFLAGS+=-m32 -else -$(error $(CPU) is not a supported architecture) -endif -endif - ifdef NOZ80 CFLAGS+=-DNO_Z80 else