Move 'source' asm files to src
This commit is contained in:
@@ -44,7 +44,6 @@ ld_script_ruby.txt
|
||||
ld_script_sapphire.txt
|
||||
sound/**/*.bin
|
||||
sound/songs/midi/*.s
|
||||
src/*.s
|
||||
src/data/items.h
|
||||
src/data/wild_encounters.h
|
||||
tags
|
||||
|
||||
@@ -117,6 +117,9 @@ endif
|
||||
C_SRCS := $(wildcard $(C_SUBDIR)/*.c)
|
||||
C_OBJS := $(patsubst $(C_SUBDIR)/%.c,$(C_BUILDDIR)/%.o,$(C_SRCS))
|
||||
|
||||
C_ASM_SRCS += $(wildcard $(C_SUBDIR)/*.s $(C_SUBDIR)/*/*.s $(C_SUBDIR)/*/*/*.s)
|
||||
C_ASM_OBJS := $(patsubst $(C_SUBDIR)/%.s,$(C_BUILDDIR)/%.o,$(C_ASM_SRCS))
|
||||
|
||||
ASM_SRCS := $(wildcard $(ASM_SUBDIR)/*.s)
|
||||
ASM_OBJS := $(patsubst $(ASM_SUBDIR)/%.s,$(ASM_BUILDDIR)/%.o,$(ASM_SRCS))
|
||||
|
||||
@@ -132,7 +135,7 @@ SONG_OBJS := $(patsubst $(SONG_SUBDIR)/%.s,$(SONG_BUILDDIR)/%.o,$(SONG_SRCS))
|
||||
MID_SRCS := $(wildcard $(MID_SUBDIR)/*.mid)
|
||||
MID_OBJS := $(patsubst $(MID_SUBDIR)/%.mid,$(MID_BUILDDIR)/%.o,$(MID_SRCS))
|
||||
|
||||
OBJS := $(C_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS)
|
||||
OBJS := $(C_OBJS) $(C_ASM_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS)
|
||||
OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS))
|
||||
|
||||
TOOLDIRS := $(filter-out tools/agbcc tools/binutils tools/analyze_source,$(wildcard tools/*))
|
||||
@@ -249,8 +252,7 @@ else
|
||||
$(C_BUILDDIR)/%.o: c_asm_dep = $(shell [[ -f $(C_SUBDIR)/$*.s ]] && $(SCANINC) -I "" $(C_SUBDIR)/$*.s)
|
||||
endif
|
||||
|
||||
|
||||
$(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s $$(asm_dep)
|
||||
$(C_BUILDDIR)/%.o: $(C_SUBDIR)/%.s $$(c_asm_dep)
|
||||
$(AS) $(ASFLAGS) -o $@ $<
|
||||
|
||||
ifeq ($(NODEP),1)
|
||||
|
||||
+4
-4
@@ -44,7 +44,7 @@ SECTIONS {
|
||||
.text :
|
||||
ALIGN(4)
|
||||
{
|
||||
asm/crt0.o(.text);
|
||||
src/crt0.o(.text);
|
||||
src/main.o(.text);
|
||||
src/gpu_regs.o(.text);
|
||||
src/dma3_manager.o(.text);
|
||||
@@ -331,8 +331,8 @@ SECTIONS {
|
||||
lib_text :
|
||||
ALIGN(4)
|
||||
{
|
||||
asm/libgcnmultiboot.o(.text);
|
||||
asm/m4a_1.o(.text);
|
||||
src/libgcnmultiboot.o(.text);
|
||||
src/m4a_1.o(.text);
|
||||
src/m4a.o(.text);
|
||||
src/agb_flash.o(.text);
|
||||
src/agb_flash_1m.o(.text);
|
||||
@@ -343,7 +343,7 @@ SECTIONS {
|
||||
src/librfu_rfu.o(.text);
|
||||
src/librfu_sio32id.o(.text);
|
||||
src/isagbprn.o(.text);
|
||||
asm/libagbsyscall.o(.text);
|
||||
src/libagbsyscall.o(.text);
|
||||
*libgcc.a:_call_via_rX.o(.text);
|
||||
*libgcc.a:_divdi3.o(.text);
|
||||
*libgcc.a:_divsi3.o(.text);
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@
|
||||
.align 3
|
||||
.include "src/digit_obj_util.o"
|
||||
.align 3
|
||||
.include "asm/m4a_1.o"
|
||||
.include "src/m4a_1.o"
|
||||
.align 3
|
||||
.include "src/agb_flash.o"
|
||||
.align 3
|
||||
|
||||
Reference in New Issue
Block a user