]> Chaos Git - corbenik/ctrulib.git/commitdiff
Add SMDH embedding to the template
authorfincs <fincs.alt1@gmail.com>
Wed, 3 Dec 2014 20:24:46 +0000 (21:24 +0100)
committerfincs <fincs.alt1@gmail.com>
Fri, 5 Dec 2014 13:13:17 +0000 (14:13 +0100)
template/Makefile

index c21562a30d8a7695b53f736364acbe548ade69e2..576126e71a9aeba1960cff6ae50a12d93767a509 100644 (file)
@@ -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)
 
 #---------------------------------------------------------------------------------