diff --git a/libc/Makefile b/libc/Makefile index f699e5cc..47e7e546 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -1,5 +1,10 @@ +ifdef DEVKITARM include $(DEVKITARM)/base_tools - +else +export CXX := arm-none-eabi-g++ +export AS := arm-none-eabi-as +export AR := arm-none-eabi-gcc-ar +endif SHELL := /bin/bash -o pipefail ASFLAGS := -mcpu=arm7tdmi diff --git a/libgcc/Makefile b/libgcc/Makefile index b1490373..9a063b60 100644 --- a/libgcc/Makefile +++ b/libgcc/Makefile @@ -1,4 +1,10 @@ +ifdef DEVKITARM include $(DEVKITARM)/base_tools +else +export CXX := arm-none-eabi-g++ +export AS := arm-none-eabi-as +export AR := arm-none-eabi-gcc-ar +endif CC1 = ../old_agbcc libgcc.a: libgcc1.a libgcc2.a fp-bit.o dp-bit.o