Skip to content

Commit

Permalink
Removing legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
VannyBuns committed Jan 18, 2024
1 parent 9a999df commit c149980
Show file tree
Hide file tree
Showing 16 changed files with 256 additions and 270 deletions.
58 changes: 46 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,22 @@ include $(DEVKITPRO)/wut/share/wut_rules
#---------------------------------------------------------------------------------
TARGET := menu_sort
BUILD := build
SOURCES := src \
DATA :=
SOURCES := src \ src/utils
DATA := data
INCLUDES := src \
CONTENT :=
ICON := meta/icon.png

INCLUDES := src

TV_SPLASH :=
DRC_SPLASH :=
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
CFLAGS := -g -Wall -O2 -ffunction-sections \
$(MACHDEP)

CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__
CFLAGS += $(INCLUDE) -D__WIIU__ -D__WUT__ -fno-exceptions

CXXFLAGS := $(CFLAGS)
CXXFLAGS := $(CFLAGS)

ASFLAGS := -g $(ARCH)
LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map)
Expand All @@ -52,13 +53,16 @@ LDFLAGS = -g $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map)
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS) $(WUT_ROOT) $(WUT_ROOT)/usr
#---------------------------------------------------------------------------------


#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions
#---------------------------------------------------------------------------------
ifneq ($(BUILD),$(notdir $(CURDIR)))
#---------------------------------------------------------------------------------

export OUTPUT := $(CURDIR)/$(TARGET)
export TOPDIR := $(CURDIR)

Expand All @@ -77,7 +81,7 @@ BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
#-------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
#-------------------------------------------------------------------------------
export LD := $(CC)
export LD := $(CXX)
#-------------------------------------------------------------------------------
else
#-------------------------------------------------------------------------------
Expand All @@ -97,6 +101,35 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \

export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)

ifneq (,$(strip $(CONTENT)))
export APP_CONTENT := $(TOPDIR)/$(CONTENT)
endif

ifneq (,$(strip $(ICON)))
export APP_ICON := $(TOPDIR)/$(ICON)
else ifneq (,$(wildcard $(TOPDIR)/$(TARGET).png))
export APP_ICON := $(TOPDIR)/$(TARGET).png
else ifneq (,$(wildcard $(TOPDIR)/icon.png))
export APP_ICON := $(TOPDIR)/icon.png
endif

ifneq (,$(strip $(TV_SPLASH)))
export APP_TV_SPLASH := $(TOPDIR)/$(TV_SPLASH)
else ifneq (,$(wildcard $(TOPDIR)/tv-splash.png))
export APP_TV_SPLASH := $(TOPDIR)/tv-splash.png
else ifneq (,$(wildcard $(TOPDIR)/splash.png))
export APP_TV_SPLASH := $(TOPDIR)/splash.png
endif

ifneq (,$(strip $(DRC_SPLASH)))
export APP_DRC_SPLASH := $(TOPDIR)/$(DRC_SPLASH)
else ifneq (,$(wildcard $(TOPDIR)/drc-splash.png))
export APP_DRC_SPLASH := $(TOPDIR)/drc-splash.png
else ifneq (,$(wildcard $(TOPDIR)/splash.png))
export APP_DRC_SPLASH := $(TOPDIR)/splash.png
endif


.PHONY: $(BUILD) clean all

#-------------------------------------------------------------------------------
Expand All @@ -109,7 +142,7 @@ $(BUILD):
#-------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).rpx $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).wuhb $(TARGET).rpx $(TARGET).elf

#-------------------------------------------------------------------------------
else
Expand All @@ -120,10 +153,11 @@ DEPENDS := $(OFILES:.o=.d)
#-------------------------------------------------------------------------------
# main targets
#-------------------------------------------------------------------------------
all : $(OUTPUT).rpx
all : $(OUTPUT).wuhb

$(OUTPUT).wuhb : $(OUTPUT).rpx
$(OUTPUT).rpx : $(OFILES)

$(OUTPUT).rpx : $(OUTPUT).elf
$(OUTPUT).elf : $(OFILES)

$(OFILES_SRC) : $(HFILES_BIN)

Expand Down
Binary file added meta/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion meta/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Menu Sort</name>
<coder>VannyBuns</coder>
<version>2.0</version>
<release_date>20200813000000</release_date>
<release_date>20240111000000</release_date>
<short_description>Wii U Menu Sort</short_description>
<long_description>Sorts items on Wii U Menu.</long_description>
</app>
36 changes: 0 additions & 36 deletions src/common/common.h

This file was deleted.

62 changes: 0 additions & 62 deletions src/common/fs_defs.h

This file was deleted.

25 changes: 0 additions & 25 deletions src/common/os_defs.h

This file was deleted.

4 changes: 0 additions & 4 deletions src/common/types.h

This file was deleted.

11 changes: 0 additions & 11 deletions src/entry.c

This file was deleted.

40 changes: 0 additions & 40 deletions src/link.ld

This file was deleted.

Loading

0 comments on commit c149980

Please sign in to comment.