From 293e28b85ddfa9acef28bbfb9c0c5f6faee7e831 Mon Sep 17 00:00:00 2001 From: luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> Date: Wed, 25 Nov 2020 09:30:16 -0500 Subject: Add support for building agbcc without devkitPro --- libc/Makefile | 6 ++++++ libgcc/Makefile | 7 +++++++ 2 files changed, 13 insertions(+) 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 -- cgit v1.2.3