#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
-ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=softfp
+ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard
CFLAGS := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
export APP_ICON := $(TOPDIR)/$(ICON)
endif
+ifeq ($(strip $(NO_SMDH)),)
+ export _3DSXFLAGS += --smdh=$(CURDIR)/$(TARGET).smdh
+endif
+
.PHONY: $(BUILD) clean all
#---------------------------------------------------------------------------------
# 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)
#---------------------------------------------------------------------------------