blob: cbe7e0bce4407f5688ce54ab5b5f2f4434be7cc6 (
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
3dsxtool $< $@
|