Better makefile

This commit is contained in:
Ethan Roseman 2020-04-24 20:37:45 -04:00
parent e36fd039cf
commit d983838ede

View File

@ -39,7 +39,7 @@ default: all
MAKEFILE_SPLIT = Makefile.split
include $(MAKEFILE_SPLIT)
all: $(TARGET).z64
all: fix_asm $(TARGET).z64
clean:
rm -rf build
@ -66,6 +66,9 @@ $(BUILD_DIR)/$(TARGET).bin: $(BUILD_DIR)/$(TARGET).elf
$(TARGET).z64: $(BUILD_DIR)/$(TARGET).bin
$(N64CKSUM) $< $@
fix_asm:
./fix_asm.py
$(BUILD_DIR)/$(TARGET).hex: $(TARGET).z64
xxd $< > $@