diff --git a/graphics/printing/hello-world/Makefile b/graphics/printing/hello-world/Makefile index 07b60f4..f629409 100644 --- a/graphics/printing/hello-world/Makefile +++ b/graphics/printing/hello-world/Makefile @@ -15,7 +15,13 @@ include $(DEVKITA64)/switch_rules # SOURCES is a list of directories containing source code # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files -# EXEFS_SRC is the input directory containing data copied into exefs, normally should only contain "main.npdm". +# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm". +# +# NO_NACP: if set to anything, no .nacp file is generated. +# APP_TITLE is the name of the app stored in the .nacp file (Optional) +# APP_AUTHOR is the author of the app stored in the .nacp file (Optional) +# APP_VERSION is the version of the app stored in the .nacp file (Optional) +# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional) #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build @@ -96,6 +102,14 @@ export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC) .PHONY: $(BUILD) clean all +ifeq ($(strip $(NO_NACP)),) +export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp +endif + +ifneq ($(APP_TITLEID),) +export NACPFLAGS += --titleid=$(APP_TITLEID) +endif + #--------------------------------------------------------------------------------- all: $(BUILD) @@ -106,7 +120,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf #--------------------------------------------------------------------------------- @@ -124,7 +138,11 @@ $(OUTPUT).pfs0 : $(OUTPUT).nso $(OUTPUT).nso : $(OUTPUT).elf +ifeq ($(strip $(NO_NACP)),) +$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp +else $(OUTPUT).nro : $(OUTPUT).elf +endif $(OUTPUT).elf : $(OFILES) diff --git a/graphics/simplegfx/Makefile b/graphics/simplegfx/Makefile index 07b60f4..f629409 100644 --- a/graphics/simplegfx/Makefile +++ b/graphics/simplegfx/Makefile @@ -15,7 +15,13 @@ include $(DEVKITA64)/switch_rules # SOURCES is a list of directories containing source code # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files -# EXEFS_SRC is the input directory containing data copied into exefs, normally should only contain "main.npdm". +# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm". +# +# NO_NACP: if set to anything, no .nacp file is generated. +# APP_TITLE is the name of the app stored in the .nacp file (Optional) +# APP_AUTHOR is the author of the app stored in the .nacp file (Optional) +# APP_VERSION is the version of the app stored in the .nacp file (Optional) +# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional) #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build @@ -96,6 +102,14 @@ export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC) .PHONY: $(BUILD) clean all +ifeq ($(strip $(NO_NACP)),) +export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp +endif + +ifneq ($(APP_TITLEID),) +export NACPFLAGS += --titleid=$(APP_TITLEID) +endif + #--------------------------------------------------------------------------------- all: $(BUILD) @@ -106,7 +120,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf #--------------------------------------------------------------------------------- @@ -124,7 +138,11 @@ $(OUTPUT).pfs0 : $(OUTPUT).nso $(OUTPUT).nso : $(OUTPUT).elf +ifeq ($(strip $(NO_NACP)),) +$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp +else $(OUTPUT).nro : $(OUTPUT).elf +endif $(OUTPUT).elf : $(OFILES) diff --git a/templates/simple/Makefile b/templates/simple/Makefile index 07b60f4..f629409 100644 --- a/templates/simple/Makefile +++ b/templates/simple/Makefile @@ -15,7 +15,13 @@ include $(DEVKITA64)/switch_rules # SOURCES is a list of directories containing source code # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files -# EXEFS_SRC is the input directory containing data copied into exefs, normally should only contain "main.npdm". +# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm". +# +# NO_NACP: if set to anything, no .nacp file is generated. +# APP_TITLE is the name of the app stored in the .nacp file (Optional) +# APP_AUTHOR is the author of the app stored in the .nacp file (Optional) +# APP_VERSION is the version of the app stored in the .nacp file (Optional) +# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional) #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build @@ -96,6 +102,14 @@ export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC) .PHONY: $(BUILD) clean all +ifeq ($(strip $(NO_NACP)),) +export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp +endif + +ifneq ($(APP_TITLEID),) +export NACPFLAGS += --titleid=$(APP_TITLEID) +endif + #--------------------------------------------------------------------------------- all: $(BUILD) @@ -106,7 +120,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf #--------------------------------------------------------------------------------- @@ -124,7 +138,11 @@ $(OUTPUT).pfs0 : $(OUTPUT).nso $(OUTPUT).nso : $(OUTPUT).elf +ifeq ($(strip $(NO_NACP)),) +$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp +else $(OUTPUT).nro : $(OUTPUT).elf +endif $(OUTPUT).elf : $(OFILES) diff --git a/usb/usbds/Makefile b/usb/usbds/Makefile index 07b60f4..f629409 100644 --- a/usb/usbds/Makefile +++ b/usb/usbds/Makefile @@ -15,7 +15,13 @@ include $(DEVKITA64)/switch_rules # SOURCES is a list of directories containing source code # DATA is a list of directories containing data files # INCLUDES is a list of directories containing header files -# EXEFS_SRC is the input directory containing data copied into exefs, normally should only contain "main.npdm". +# EXEFS_SRC is the optional input directory containing data copied into exefs, if anything this normally should only contain "main.npdm". +# +# NO_NACP: if set to anything, no .nacp file is generated. +# APP_TITLE is the name of the app stored in the .nacp file (Optional) +# APP_AUTHOR is the author of the app stored in the .nacp file (Optional) +# APP_VERSION is the version of the app stored in the .nacp file (Optional) +# APP_TITLEID is the titleID of the app stored in the .nacp file (Optional) #--------------------------------------------------------------------------------- TARGET := $(notdir $(CURDIR)) BUILD := build @@ -96,6 +102,14 @@ export BUILD_EXEFS_SRC := $(TOPDIR)/$(EXEFS_SRC) .PHONY: $(BUILD) clean all +ifeq ($(strip $(NO_NACP)),) +export NROFLAGS += --nacp=$(CURDIR)/$(TARGET).nacp +endif + +ifneq ($(APP_TITLEID),) +export NACPFLAGS += --titleid=$(APP_TITLEID) +endif + #--------------------------------------------------------------------------------- all: $(BUILD) @@ -106,7 +120,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).pfs0 $(TARGET).nso $(TARGET).nro $(TARGET).nacp $(TARGET).elf #--------------------------------------------------------------------------------- @@ -124,7 +138,11 @@ $(OUTPUT).pfs0 : $(OUTPUT).nso $(OUTPUT).nso : $(OUTPUT).elf +ifeq ($(strip $(NO_NACP)),) +$(OUTPUT).nro : $(OUTPUT).elf $(OUTPUT).nacp +else $(OUTPUT).nro : $(OUTPUT).elf +endif $(OUTPUT).elf : $(OFILES)