diff options
author | root <root@t60.home.remexre.com> | 2024-11-18 10:45:20 -0600 |
---|---|---|
committer | root <root@t60.home.remexre.com> | 2024-11-18 10:45:20 -0600 |
commit | 62e41dcb40d0450d493a804e7f0ac3e32f35aabf (patch) | |
tree | 0744f1af53ac605868d8b85cd5446264820a4ca1 /src/platform/3ds.mk | |
parent | 943a6597b2bcd1b3ed208458a5cba61ad5b4051c (diff) |
Adds Linux support.
Diffstat (limited to 'src/platform/3ds.mk')
-rw-r--r-- | src/platform/3ds.mk | 18 |
1 files changed, 18 insertions, 0 deletions
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=<path to>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 $< $@ |