mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 00:15:08 +01:00
0f17471b27
*Added sources of the custom libs to the branches *Fixed crash when switching from list layout to grid/carousel layout *Removed 1:1 copy option because its meaningless and almost the same as installing all partitions *Fixed install partition selection. This option needs a reset. Go to settings and reselect your option for this. *Fixed schinese and tchinese language modes (filename bugs. has to be schinese.lang and tchinese.lang like on SVN) *Fixed bug in sound buffer circle *Fixed incorrect behaviour of x-flip when selecting system like (thx Cyan for the patch) *Accept ios revision 65535 for Waninkokos IOSes (thx to PPSainity for pointing it out) *Merged the new theming style branch into trunk. Just as a reminder: ALL old themes will not work until the themers did port it to the new style! *Removed old theme style completely Theme example: The example file of the theme is the Default.them file. It can be found in the SVN trunk. Change in loading of themes: When selecting a theme now a list of all .them files in a folder is displayed. The image folder of that theme has to be in the same folder as the .them file. The image path is defined in the head of the .them file in the line with "Image-Folder: Example\n".
133 lines
4.7 KiB
Makefile
133 lines
4.7 KiB
Makefile
#---------------------------------------------------------------------------------
|
|
# Clear the implicit built in rules
|
|
#---------------------------------------------------------------------------------
|
|
.SUFFIXES:
|
|
#---------------------------------------------------------------------------------
|
|
ifeq ($(strip $(DEVKITPPC)),)
|
|
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),wii)
|
|
include $(DEVKITPPC)/wii_rules
|
|
endif
|
|
|
|
ifeq ($(PLATFORM),cube)
|
|
include $(DEVKITPPC)/gamecube_rules
|
|
endif
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# BUILD is the directory where object files & intermediate files will be placed
|
|
# SOURCES is a list of directories containing source code
|
|
# INCLUDES is a list of directories containing extra header files
|
|
#---------------------------------------------------------------------------------
|
|
BUILD ?= wii_release
|
|
SOURCES := .
|
|
INCLUDES := ../include
|
|
LIBDIR := ../lib
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# options for code generation
|
|
#---------------------------------------------------------------------------------
|
|
CFLAGS = -O3 -Wall $(MACHDEP) $(INCLUDE) -DGEKKO \
|
|
-DHAVE_UNISTD_H -DHAVE_SYS_STAT_H -DHAVE_SYS_TYPES_H -DHAVE_UTIME_H -DWORDS_BIGENDIAN \
|
|
-DHAVE_ERRNO_H -DHAVE_STRDUP -DHAVE_SYS_RESOURCE_H
|
|
CXXFLAGS = $(CFLAGS)
|
|
ASFLAGS := -g
|
|
export EXT2BIN := $(LIBDIR)/$(PLATFORM)/libext2fs.a
|
|
|
|
ifeq ($(BUILD),cube_debug)
|
|
CFLAGS += -DDEBUG_GEKKO
|
|
CXXFLAGS += -DDEBUG_GEKKO
|
|
endif
|
|
ifeq ($(BUILD),wii_debug)
|
|
CFLAGS += -DDEBUG_GEKKO
|
|
CXXFLAGS += -DDEBUG_GEKKO
|
|
endif
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# any extra libraries we wish to link with the project
|
|
#---------------------------------------------------------------------------------
|
|
LIBS :=
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# list of directories containing libraries, this must be the top level containing
|
|
# include and lib
|
|
#---------------------------------------------------------------------------------
|
|
LIBDIRS :=
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# 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 DEPSDIR := $(CURDIR)/$(BUILD)
|
|
|
|
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
|
|
$(foreach dir,$(DATA),$(CURDIR)/$(dir))
|
|
|
|
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
|
|
CPPFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.cpp)))
|
|
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
|
|
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
|
|
|
|
|
|
export OFILES := $(addsuffix .o,$(BINFILES)) \
|
|
$(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(SFILES:.s=.o)
|
|
|
|
export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
|
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
|
|
-I$(CURDIR)/$(BUILD) \
|
|
-I$(LIBOGC_INC)
|
|
|
|
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \
|
|
-L$(LIBOGC_LIB)
|
|
|
|
.PHONY: $(BUILD) clean
|
|
|
|
#---------------------------------------------------------------------------------
|
|
$(BUILD):
|
|
@[ -d $@ ] || mkdir -p $@
|
|
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
|
|
|
#---------------------------------------------------------------------------------
|
|
clean:
|
|
@echo clean ...
|
|
@rm -fr wii_debug wii_release cube_debug cube_release $(LIBDIR)
|
|
|
|
all: $(EXT2BIN)
|
|
|
|
install:
|
|
cp ../include/ext2.h $(DEVKITPRO)/libogc/include
|
|
cp ../lib/wii/libext2fs.a $(DEVKITPRO)/libogc/lib/wii
|
|
cp ../lib/cube/libext2fs.a $(DEVKITPRO)/libogc/lib/cube
|
|
|
|
wii-install:
|
|
cp ../include/ext2.h $(DEVKITPRO)/libogc/include
|
|
cp ../lib/wii/libext2fs.a $(DEVKITPRO)/libogc/lib/wii
|
|
|
|
#---------------------------------------------------------------------------------
|
|
else
|
|
|
|
DEPENDS := $(OFILES:.o=.d)
|
|
|
|
#---------------------------------------------------------------------------------
|
|
# main targets
|
|
#---------------------------------------------------------------------------------
|
|
$(EXT2BIN): $(OFILES) $(LIBDIR)/$(PLATFORM)
|
|
@rm -f "../$(EXT2BIN)"
|
|
@$(AR) rcs "../$(EXT2BIN)" $(OFILES)
|
|
@echo built ... $(notdir $@)
|
|
|
|
$(LIBDIR)/$(PLATFORM):
|
|
mkdir -p ../$(LIBDIR)/$(PLATFORM)
|
|
|
|
-include $(DEPENDS)
|
|
|
|
#---------------------------------------------------------------------------------------
|
|
endif
|
|
#---------------------------------------------------------------------------------------
|
|
|