From c2d307a9d977be715c5cf4bb1320475897b4f560 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Wed, 30 Dec 2015 14:13:32 +0000 Subject: [PATCH] support embedded smdh --- Makefile.3ds | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.3ds b/Makefile.3ds index 8deb9e3..189d609 100644 --- a/Makefile.3ds +++ b/Makefile.3ds @@ -43,7 +43,6 @@ ICON := ftbrony.png ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard CFLAGS := -g -Wall -O3 -mword-relocations \ - -fomit-frame-pointer -ffast-math \ $(ARCH) \ -DSTATUS_STRING="\"ftbrony v1.1\"" @@ -117,6 +116,14 @@ else export APP_ICON := $(TOPDIR)/$(ICON) endif +ifeq ($(strip $(NO_SMDH)),) + export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh +endif + +ifneq ($(ROMFS),) + export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS) +endif + .PHONY: $(BUILD) clean all #--------------------------------------------------------------------------------- @@ -143,6 +150,8 @@ DEPENDS := $(OFILES:.o=.d) ifeq ($(strip $(NO_SMDH)),) .PHONY: all all : $(OUTPUT).3dsx $(OUTPUT).smdh +$(OUTPUT).smdh : $(TOPDIR)/Makefile +$(OUTPUT).3dsx: $(OUTPUT).smdh endif $(OUTPUT).3dsx: $(OUTPUT).elf $(OUTPUT).elf: $(OFILES)