From: fincs Date: Wed, 3 Dec 2014 20:24:46 +0000 (+0100) Subject: Add SMDH embedding to the template X-Git-Tag: v0.2.0~5 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=2d072ab9aa267e9a2dad4b6c8ccca97d479c05d7;p=corbenik%2Fctrulib.git Add SMDH embedding to the template --- 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) #---------------------------------------------------------------------------------