From bde4a411b3ea03a1055da8c41ce2d7b2f8f172c1 Mon Sep 17 00:00:00 2001 From: Synray <31429825+Synray@users.noreply.github.com> Date: Mon, 21 Dec 2020 16:14:25 -0800 Subject: [PATCH] Add .PHONY and add 'test' target to Makefile (#526) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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/%