From 2d072ab9aa267e9a2dad4b6c8ccca97d479c05d7 Mon Sep 17 00:00:00 2001 From: fincs Date: Wed, 3 Dec 2014 21:24:46 +0100 Subject: [PATCH] Add SMDH embedding to the template --- template/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/template/Makefile b/template/Makefile index c21562a..576126e 100644 --- a/template/Makefile +++ b/template/Makefile @@ -113,6 +113,10 @@ else export APP_ICON := $(TOPDIR)/$(ICON) endif +ifeq ($(strip $(NO_SMDH)),) + export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh +endif + .PHONY: $(BUILD) clean all #--------------------------------------------------------------------------------- @@ -137,10 +141,11 @@ DEPENDS := $(OFILES:.o=.d) # main targets #--------------------------------------------------------------------------------- ifeq ($(strip $(NO_SMDH)),) -.PHONY: all -all : $(OUTPUT).3dsx $(OUTPUT).smdh -endif +$(OUTPUT).3dsx : $(OUTPUT).elf $(OUTPUT).smdh +else $(OUTPUT).3dsx : $(OUTPUT).elf +endif + $(OUTPUT).elf : $(OFILES) #---------------------------------------------------------------------------------