summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/Makefile6
-rw-r--r--libgcc/Makefile7
2 files changed, 13 insertions, 0 deletions
diff --git a/libc/Makefile b/libc/Makefile
index 48bfa40..c377f1a 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -1,4 +1,10 @@
+ifneq (,$(wildcard $(DEVKITARM)/base_tools))
include $(DEVKITARM)/base_tools
+else
+PREFIX := arm-none-eabi-
+export AR := $(PREFIX)ar
+export AS := $(PREFIX)as
+endif
SHELL := /bin/bash -o pipefail
diff --git a/libgcc/Makefile b/libgcc/Makefile
index b149037..721d9d2 100644
--- a/libgcc/Makefile
+++ b/libgcc/Makefile
@@ -1,4 +1,11 @@
+ifneq (,$(wildcard $(DEVKITARM)/base_tools))
include $(DEVKITARM)/base_tools
+else
+PREFIX := arm-none-eabi-
+export AR := $(PREFIX)ar
+export AS := $(PREFIX)as
+endif
+
CC1 = ../old_agbcc
libgcc.a: libgcc1.a libgcc2.a fp-bit.o dp-bit.o