support embedded smdh

This commit is contained in:
Dave Murphy 2015-12-30 14:13:32 +00:00
parent 3dc7839118
commit c2d307a9d9

View File

@ -43,7 +43,6 @@ ICON := ftbrony.png
ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O3 -mword-relocations \ CFLAGS := -g -Wall -O3 -mword-relocations \
-fomit-frame-pointer -ffast-math \
$(ARCH) \ $(ARCH) \
-DSTATUS_STRING="\"ftbrony v1.1\"" -DSTATUS_STRING="\"ftbrony v1.1\""
@ -117,6 +116,14 @@ else
export APP_ICON := $(TOPDIR)/$(ICON) export APP_ICON := $(TOPDIR)/$(ICON)
endif endif
ifeq ($(strip $(NO_SMDH)),)
export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
endif
ifneq ($(ROMFS),)
export _3DSXFLAGS += --romfs=$(CURDIR)/$(ROMFS)
endif
.PHONY: $(BUILD) clean all .PHONY: $(BUILD) clean all
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
@ -143,6 +150,8 @@ DEPENDS := $(OFILES:.o=.d)
ifeq ($(strip $(NO_SMDH)),) ifeq ($(strip $(NO_SMDH)),)
.PHONY: all .PHONY: all
all : $(OUTPUT).3dsx $(OUTPUT).smdh all : $(OUTPUT).3dsx $(OUTPUT).smdh
$(OUTPUT).smdh : $(TOPDIR)/Makefile
$(OUTPUT).3dsx: $(OUTPUT).smdh
endif endif
$(OUTPUT).3dsx: $(OUTPUT).elf $(OUTPUT).3dsx: $(OUTPUT).elf
$(OUTPUT).elf: $(OFILES) $(OUTPUT).elf: $(OFILES)