summaryrefslogtreecommitdiff
path: root/src/platform/3ds.mk
blob: 0b0d2f2abf6d519a091c5ff606382b334e62003e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
	$(DEVKITPRO)/../../bin/3dsxtool $< $@