mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
Add .PHONY and add 'test' target to Makefile (#526)
This commit is contained in:
parent
df704a9f80
commit
bde4a411b3
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -60,6 +60,8 @@ AS := $(MIPS_BINUTILS_PREFIX)as
|
||||||
LD := $(MIPS_BINUTILS_PREFIX)ld
|
LD := $(MIPS_BINUTILS_PREFIX)ld
|
||||||
OBJCOPY := $(MIPS_BINUTILS_PREFIX)objcopy
|
OBJCOPY := $(MIPS_BINUTILS_PREFIX)objcopy
|
||||||
OBJDUMP := $(MIPS_BINUTILS_PREFIX)objdump
|
OBJDUMP := $(MIPS_BINUTILS_PREFIX)objdump
|
||||||
|
EMULATOR = mupen64plus
|
||||||
|
EMU_FLAGS = --noosd
|
||||||
|
|
||||||
# Check code syntax with host compiler
|
# 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
|
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_baserom.py
|
||||||
python3 extract_assets.py
|
python3 extract_assets.py
|
||||||
|
|
||||||
|
test: $(ROM)
|
||||||
|
$(EMULATOR) $(EMU_FLAGS) $<
|
||||||
|
|
||||||
|
.PHONY: all clean setup test
|
||||||
|
|
||||||
#### Various Recipes ####
|
#### Various Recipes ####
|
||||||
|
|
||||||
build/baserom/%.o: baserom/%
|
build/baserom/%.o: baserom/%
|
||||||
|
|
Loading…
Reference in a new issue