From 8834fdd3e24e7904973af4ca160c1badbf5bb31a Mon Sep 17 00:00:00 2001 From: nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> Date: Sun, 11 Aug 2019 14:31:39 +0000 Subject: Port m4a from pokeemerald --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cf08707..f5091ae 100755 --- a/Makefile +++ b/Makefile @@ -63,8 +63,7 @@ $(BUILD_DIR)/src/agb_flash.o : CC1FLAGS := -O -mthumb-interwork $(BUILD_DIR)/src/agb_flash_1m.o: CC1FLAGS := -O -mthumb-interwork $(BUILD_DIR)/src/agb_flash_mx.o: CC1FLAGS := -O -mthumb-interwork -$(BUILD_DIR)/src/m4a_2.o: CC1 := tools/agbcc/bin/old_agbcc -$(BUILD_DIR)/src/m4a_4.o: CC1 := tools/agbcc/bin/old_agbcc +$(BUILD_DIR)/src/m4a.o: CC1 := tools/agbcc/bin/old_agbcc #### Main Rules #### -- cgit v1.2.3 From a0aac0e9d22251550fc01bc899d3144639072d3e Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Tue, 20 Oct 2020 13:02:58 -0500 Subject: static-link libagbsyscall similar to pokeemerald... Thx Pika --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cf08707..0d2f384 100755 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ SUBDIRS := $(sort $(dir $(ALL_OBJECTS))) ifeq ($(OS),Windows_NT) LIB := ../../tools/agbcc/lib/libc.a ../../tools/agbcc/lib/libgcc.a else -LIB := -L ../../tools/agbcc/lib -lc -lgcc +LIB := -L ../../tools/agbcc/lib -lc -lgcc -L ../../libagbsyscall -lagbsyscall endif LD_SCRIPT := $(BUILD_DIR)/ld_script.ld @@ -78,7 +78,7 @@ endif ALL_BUILDS := red # Available targets -.PHONY: all clean tidy +.PHONY: all clean tidy libagbsyscall MAKEFLAGS += --no-print-directory # Secondary expansion is required for dependency variables in object rules. @@ -107,12 +107,13 @@ clean: tidy tidy: $(RM) $(ALL_BUILDS:%=pmd_%{.gba,.elf,.map}) $(RM) -r build + @$(MAKE) clean -C libagbsyscall $(ROM): %.gba: %.elf $(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0xA000000 $< $@ $(GBAFIX) $@ -p -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent -%.elf: $(LD_SCRIPT) $(ALL_OBJECTS) $(LIBC) +%.elf: $(LD_SCRIPT) $(ALL_OBJECTS) $(LIBC) libagbsyscall cd $(BUILD_DIR) && $(LD) -T ld_script.ld -Map ../../$(MAP) -o ../../$@ $(LIB) $(LD_SCRIPT): ld_script.txt $(BUILD_DIR)/sym_ewram.ld $(BUILD_DIR)/sym_ewram2.ld $(BUILD_DIR)/sym_iwram.ld @@ -131,3 +132,6 @@ $(BUILD_DIR)/data/%.o: data/%.s $$(ASM_DEP) $(BUILD_DIR)/%.o: %.s $$(ASM_DEP) $(AS) $(ASFLAGS) $< -o $@ + +libagbsyscall: + @$(MAKE) -C libagbsyscall TOOLCHAIN=$(TOOLCHAIN) -- cgit v1.2.3 From d2ac12318644acd563008657c653af7eae248126 Mon Sep 17 00:00:00 2001 From: Kermalis <29823718+Kermalis@users.noreply.github.com> Date: Sat, 21 Nov 2020 19:01:50 -0500 Subject: Fix Windows build (#1) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bcd9003..2c55dcd 100755 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ ALL_OBJECTS := $(C_OBJECTS) $(ASM_OBJECTS) SUBDIRS := $(sort $(dir $(ALL_OBJECTS))) ifeq ($(OS),Windows_NT) -LIB := ../../tools/agbcc/lib/libc.a ../../tools/agbcc/lib/libgcc.a +LIB := ../../tools/agbcc/lib/libc.a ../../tools/agbcc/lib/libgcc.a ../../libagbsyscall/libagbsyscall.a else LIB := -L ../../tools/agbcc/lib -lc -lgcc -L ../../libagbsyscall -lagbsyscall endif -- cgit v1.2.3