diff --git a/Makefile b/Makefile index dcd89360b4..fa5fe92259 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,8 @@ AS := $(MIPS_BINUTILS_PREFIX)as LD := $(MIPS_BINUTILS_PREFIX)ld OBJCOPY := $(MIPS_BINUTILS_PREFIX)objcopy OBJDUMP := $(MIPS_BINUTILS_PREFIX)objdump +EMULATOR = mupen64plus +EMU_FLAGS = --noosd # Check code syntax with host compiler CHECK_WARNINGS := -Wall -Wextra -Wno-format-security -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-variable -Wno-missing-braces -Wno-int-conversion @@ -193,6 +195,11 @@ setup: python3 extract_baserom.py python3 extract_assets.py +test: $(ROM) + $(EMULATOR) $(EMU_FLAGS) $< + +.PHONY: all clean setup test + #### Various Recipes #### build/baserom/%.o: baserom/%