This commit is contained in:
Ethan Roseman 2020-08-02 00:29:52 -04:00
parent 6e92c52f01
commit 05a7dbbc5b
132 changed files with 139 additions and 134 deletions

View File

@ -8,7 +8,7 @@ SHELL=/bin/bash -o pipefail
BUILD_DIR = build BUILD_DIR = build
SRC_DIRS := src SRC_DIRS := src
ASM_DIRS := asm ASM_DIRS := asm asm/os
DATA_DIRS := bin DATA_DIRS := bin
COMPRESSED_DIRS := yay0 COMPRESSED_DIRS := yay0
MAP_DIRS := Map_Assets.FS MAP_DIRS := Map_Assets.FS
@ -49,6 +49,7 @@ OBJCOPY = $(CROSS)objcopy
CPPFLAGS = -Iinclude -D _LANGUAGE_C -ffreestanding CPPFLAGS = -Iinclude -D _LANGUAGE_C -ffreestanding
ASFLAGS = -EB -march=vr4300 -mtune=vr4300 -Iinclude ASFLAGS = -EB -march=vr4300 -mtune=vr4300 -Iinclude
OLDASFLAGS= -EB -Iinclude
CFLAGS = -O2 -quiet -G 0 -mcpu=vr4300 -mfix4300 CFLAGS = -O2 -quiet -G 0 -mcpu=vr4300 -mfix4300
LDFLAGS = -T undefined_syms.txt -T $(LD_SCRIPT) -Map $(BUILD_DIR)/papermario.map --no-check-sections LDFLAGS = -T undefined_syms.txt -T $(LD_SCRIPT) -Map $(BUILD_DIR)/papermario.map --no-check-sections
@ -79,7 +80,7 @@ $(BUILD_DIR)/%.o: %.s
$(AS) $(ASFLAGS) -o $@ $< $(AS) $(ASFLAGS) -o $@ $<
$(BUILD_DIR)/%.o: %.c $(BUILD_DIR)/%.o: %.c
cpp $(CPPFLAGS) $< | $(CC) $(CFLAGS) -o - | $(OLD_AS) - -o $@ cpp $(CPPFLAGS) $< | $(CC) $(CFLAGS) -o - | $(OLD_AS) $(OLDASFLAGS) - -o $@
$(BUILD_DIR)/%.o: %.bin $(BUILD_DIR)/%.o: %.bin
$(LD) -r -b binary -o $@ $< $(LD) -r -b binary -o $@ $<

View File

@ -9,7 +9,7 @@
.include "macro.inc" .include "macro.inc"
.section .text80242BA0_2, "ax" .section .tex280242BA0, "ax"
/* 135EE0 80242BA0 3C018025 */ lui $at, 0x8025 /* 135EE0 80242BA0 3C018025 */ lui $at, 0x8025
/* 135EE4 80242BA4 03E00008 */ jr $ra /* 135EE4 80242BA4 03E00008 */ jr $ra

Some files were not shown because too many files have changed in this diff Show More