make includes relative to the base dir

This commit is contained in:
YamaArashi 2015-10-08 02:03:14 -07:00
parent 57ce369ccf
commit c467da924b
3 changed files with 24 additions and 24 deletions

View File

@ -1,4 +1,4 @@
.include "rom_header.s"
.include "asm/rom_header.s"
_080000C0:
.long 0

View File

@ -1,5 +1,5 @@
.include "defines.s"
.include "macros.s"
.include "asm/defines.s"
.include "asm/macros.s"
.syntax unified
@ -10,19 +10,19 @@
.arm
Start:
.include "crt0.s"
.include "asm/crt0.s"
.thumb
.include "main.s"
.include "malloc.s"
.include "dma3_manager.s"
.include "gpu_reg_manager.s"
.include "gpu_bg.s"
.include "pixel_buffer.s"
.include "window.s"
.include "text_renderer.s"
.include "gpu_obj.s"
.include "asm/main.s"
.include "asm/malloc.s"
.include "asm/dma3_manager.s"
.include "asm/gpu_reg_manager.s"
.include "asm/gpu_bg.s"
.include "asm/pixel_buffer.s"
.include "asm/window.s"
.include "asm/text_renderer.s"
.include "asm/gpu_obj.s"
thumb_func_start strcpy_limit_10_chars
strcpy_limit_10_chars: @ 8008B10
@ -317522,7 +317522,7 @@ _080A8F32:
.pool
thumb_func_end sub_80A8EE4
.include "task.s"
.include "asm/task.s"
thumb_func_start nullsub_35
nullsub_35: @ 80A92F4
@ -920531,12 +920531,12 @@ _081DB66C:
.pool
thumb_func_end sub_81DB620
.include "data1.s"
.include "unknown_lib_1.s"
.include "libmks4agb.s"
.include "libagbbackup.s"
.include "unknown_lib_2.s"
.include "librfu.s"
.include "libagbsyscall.s"
.include "libgcc.s"
.include "data2.s"
.include "asm/data1.s"
.include "asm/unknown_lib_1.s"
.include "asm/libmks4agb.s"
.include "asm/libagbbackup.s"
.include "asm/unknown_lib_2.s"
.include "asm/librfu.s"
.include "asm/libagbsyscall.s"
.include "asm/libgcc.s"
.include "asm/data2.s"

View File

@ -1,4 +1,4 @@
as -mcpu=arm7tdmi asm/emerald.s -Iasm
as -mcpu=arm7tdmi asm/emerald.s
ld -T ld_script.txt -o emerald.o a.out
objcopy -O binary emerald.o emerald.gba
fc /b base_emerald.gba emerald.gba