summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-01-11 18:25:42 -0800
committerGitHub <noreply@github.com>2018-01-11 18:25:42 -0800
commitd1630d481a0ff611fda2d70a100eed5046982cec (patch)
treee4de58bbf80fca6a78ea1db48a8f1ab36a81c789 /Makefile
parent73d3a21c2d0a0352cd314e7211fac316cd03b351 (diff)
parente1801885a0619724860cb322ba1cb8dba2b2c0f3 (diff)
Merge pull request #155 from ProjectRevoTPP/assert
add assert support to pokeemerald.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f4cceb7f7..a0f93e250 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,8 @@ OBJCOPY := $(DEVKITARM)/bin/arm-none-eabi-objcopy
LIBGCC := tools/agbcc/lib/libgcc.a
+LIBC := tools/agbcc/lib/libc.a
+
SHA1 := sha1sum -c
GFX := tools/gbagfx/gbagfx
@@ -160,7 +162,7 @@ $(OBJ_DIR)/ld_script.ld: ld_script.txt $(OBJ_DIR)/sym_bss.ld $(OBJ_DIR)/sym_comm
cd $(OBJ_DIR) && sed -f ../../ld_script.sed ../../$< | sed "s#tools/#../../tools/#g" > ld_script.ld
$(ELF): $(OBJ_DIR)/ld_script.ld $(OBJS)
- cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ld_script.ld -o ../../$@ $(OBJS_REL) ../../$(LIBGCC)
+ cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ld_script.ld -o ../../$@ $(OBJS_REL) ../../$(LIBGCC) ../../$(LIBC)
$(ROM): $(ELF)
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@