summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2018-01-21 12:51:52 -0500
committerscnorton <scnorton@biociphers.org>2018-01-21 12:51:52 -0500
commit00df1bf797ec763593b392a98d58ea3576230193 (patch)
treed22015b396624385b5a935fd0567f4a6b9a237d2
parent66201fa6ab8f91fbebe24c6ea5904b5fb7c652f2 (diff)
Use standard flags to link libc, libgcc
-rwxr-xr-xMakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6d5d120..e568dcf 100755
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,7 @@ LD := $(DEVKITARM)/bin/arm-none-eabi-ld
OBJCOPY := $(DEVKITARM)/bin/arm-none-eabi-objcopy
-LIBGCC := tools/agbcc/lib/libgcc.a
-LIBC := tools/agbcc/lib/libc.a
+LIB := -L tools/agbcc/lib -lc -lgcc
MD5 := md5sum -c
@@ -93,7 +92,7 @@ ld_script.ld: ld_script.txt sym_ewram.ld sym_ewram2.ld sym_iwram.ld
sed -f ld_script.sed ld_script.txt >ld_script.ld
pmd_red.elf: ld_script.ld $(OBJS) $(LIBC)
- $(LD) -T ld_script.ld -Map pmd_red.map -o $@ $(OBJS) $(LIBC) $(LIBGCC)
+ $(LD) -T ld_script.ld -Map pmd_red.map -o $@ $(OBJS) $(LIB)
pmd_red.gba: pmd_red.elf
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0xA000000 $< $@