From 62e41dcb40d0450d493a804e7f0ac3e32f35aabf Mon Sep 17 00:00:00 2001 From: root Date: Mon, 18 Nov 2024 10:45:20 -0600 Subject: Adds Linux support. --- src/platform/3ds.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/platform/3ds.mk (limited to 'src/platform/3ds.mk') diff --git a/src/platform/3ds.mk b/src/platform/3ds.mk new file mode 100644 index 0000000..cbe7e0b --- /dev/null +++ b/src/platform/3ds.mk @@ -0,0 +1,18 @@ +ifeq ($(strip $(DEVKITPRO)),) +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPRO") +endif + +CC = $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-gcc + +CFLAGS_AUTO += -D__3DS__ -march=armv6k -mtune=mpcore -mfloat-abi=hard -mtp=soft -mword-relocations +LDFLAGS_AUTO += -L$(DEVKITPRO)/libctru/lib -specs=3dsx.specs +LDLIBS_AUTO += -lctru + +all: imb3.3dsx + +3dslink: imb3.3dsx + $(DEVKITPRO)/tools/bin/3dslink $< +.PHONY: 3dslink + +imb3.3dsx: imb3.elf + 3dsxtool $< $@ -- cgit v1.2.3