-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added: option to disable AA filtering (snes graphics 'crisper', AA now default OFF) - added: mapped zooming and turbo mode to classic controller - added: preliminary usb support (loading) - changed: sram and freezes now saved by filename, not internal romname. If you have multiple versions of the same game, you can now have srams and freezes for each version. A prompt to convert to the new naming is provided for sram only. - changed: by default, autoload/save sram and freeze enabled
- Loading branch information
dborth
committed
Oct 16, 2008
1 parent
b627305
commit 65984b9
Showing
196 changed files
with
19,290 additions
and
27,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
VERSION := 006 | ||
|
||
#--------------------------------------------------------------------------------- | ||
# Clear the implicit built in rules | ||
#--------------------------------------------------------------------------------- | ||
|
@@ -11,46 +9,50 @@ endif | |
|
||
include $(DEVKITPPC)/wii_rules | ||
|
||
LOADTYPE = "sd" | ||
VERSION = "version" | ||
|
||
#--------------------------------------------------------------------------------- | ||
# TARGET is the name of the output | ||
# 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 | ||
#--------------------------------------------------------------------------------- | ||
TARGET := snes9xgx-$(VERSION)-wii | ||
TARGETDIR := executables | ||
TARGET := executables/snes9xgx-$(VERSION)-$(LOADTYPE)-wii | ||
BUILD := build_wii | ||
SOURCES := source/snes9x source/ngc source/sz | ||
SOURCES := source/snes9x source/unzip source/ngc source/smb | ||
DATA := data | ||
INCLUDES := source/snes9x source/ngc | ||
INCLUDES := source/snes9x source/unzip source/ngc source/smb | ||
|
||
#--------------------------------------------------------------------------------- | ||
# options for code generation | ||
#--------------------------------------------------------------------------------- | ||
|
||
CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \ | ||
-DNGC -DWII_DVD \ | ||
-DNO_ASM -DRIGHTSHIFT_IS_SAR \ | ||
-DCPU_SHUTDOWN -DSPC700_SHUTDOWN \ | ||
-DSPC700_C -DSDD1_DECOMP \ | ||
-DCORRECT_VRAM_READS -DNEW_COLOUR_BLENDING \ | ||
-D_SZ_ONE_DIRECTORY -D_LZMA_IN_CB -D_LZMA_OUT_READ \ | ||
-fomit-frame-pointer -fno-exceptions -Wno-unused-parameter \ | ||
#-D_DEBUG_VIDEO -pipe | ||
CXXFLAGS = -save-temps -Xassembler [email protected] $(CFLAGS) | ||
CUSTOMFLAGS = -DQUICK_SAVE_SLOT=3 -DSMB_SVID='"Crunchewy"' \ | ||
-DSMB_IP='"192.168.1.111"' -DGW_IP='"192.168.1.1"' | ||
|
||
CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE) \ | ||
-DNGC -DHW_RVL -DNO_ASM -DCPU_SHUTDOWN -DSPC700C \ | ||
-DSPC700_SHUTDOWN -DNEW_COLOUR_BLENDING \ | ||
-DNO_INLINE_GET_SET -DSDD1_DECOMP -DCORRECT_VRAM_READS \ | ||
-DDETECT_NASTY_FX_INTERLEAVE -DNGC_ZOOM -DSDUSE_LFN \ | ||
-DFORCE_WII=1 $(CUSTOMFLAGS)\ | ||
-fomit-frame-pointer -fno-exceptions -Wno-unused-parameter -pipe | ||
CXXFLAGS = $(CFLAGS) | ||
|
||
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map | ||
LDFLAGS = -g $(MACHDEP) -Wl,-Map,$(notdir $@).map -Wl,--cref | ||
|
||
#--------------------------------------------------------------------------------- | ||
# any extra libraries we wish to link with the project | ||
#--------------------------------------------------------------------------------- | ||
LIBS := -ldi -lpngu -lpng -lmxml -lfat -lwiiuse -lz -lbte -logc -lm -lfreetype -ltinysmb | ||
LIBS := -lfat -lwiiuse -lz -lbte -logc -lm -lfreetype | ||
# -logcsys | ||
|
||
#--------------------------------------------------------------------------------- | ||
# list of directories containing libraries, this must be the top level containing | ||
# include and lib | ||
#--------------------------------------------------------------------------------- | ||
LIBDIRS := $(CURDIR) | ||
LIBDIRS := | ||
|
||
#--------------------------------------------------------------------------------- | ||
# no real need to edit anything past this point unless you need to add additional | ||
|
@@ -59,7 +61,7 @@ LIBDIRS := $(CURDIR) | |
ifneq ($(BUILD),$(notdir $(CURDIR))) | ||
#--------------------------------------------------------------------------------- | ||
|
||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET) | ||
export OUTPUT := $(CURDIR)/$(TARGET) | ||
|
||
export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \ | ||
$(foreach dir,$(DATA),$(CURDIR)/$(dir)) | ||
|
@@ -102,15 +104,13 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \ | |
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib) \ | ||
-L$(LIBOGC_LIB) | ||
|
||
export OUTPUT := $(CURDIR)/$(TARGETDIR)/$(TARGET) | ||
export OUTPUT := $(CURDIR)/$(TARGET) | ||
.PHONY: $(BUILD) clean | ||
|
||
#--------------------------------------------------------------------------------- | ||
$(BUILD): | ||
@[ -d $@ ] || mkdir -p $@ | ||
@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR) | ||
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile.wii | ||
@rm -fr $(OUTPUT).elf | ||
|
||
#--------------------------------------------------------------------------------- | ||
clean: | ||
|
Oops, something went wrong.