diff --git a/Makefile b/Makefile index 9d7b406..78c1581 100644 --- a/Makefile +++ b/Makefile @@ -3,14 +3,10 @@ TARGET := 3DS LIBRARY := 0 -ifeq ($(TARGET),3DS) +ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU)) ifeq ($(strip $(DEVKITPRO)),) $(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro") endif - - ifeq ($(strip $(DEVKITARM)),) - $(error "Please set DEVKITARM in your environment. export DEVKITARM=devkitARM") - endif endif # COMMON CONFIGURATION # @@ -24,8 +20,8 @@ SOURCE_DIRS := source EXTRA_OUTPUT_FILES := servefiles -LIBRARY_DIRS := $(DEVKITPRO)/libctru -LIBRARIES := citro3d ctru m +LIBRARY_DIRS := +LIBRARIES := BUILD_FLAGS := RUN_FLAGS := @@ -36,23 +32,49 @@ VERSION_MAJOR := $(word 1, $(VERSION_PARTS)) VERSION_MINOR := $(word 2, $(VERSION_PARTS)) VERSION_MICRO := $(word 3, $(VERSION_PARTS)) +# 3DS/Wii U CONFIGURATION # + +ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU)) + TITLE := $(NAME) + DESCRIPTION := Open source CIA installer. + AUTHOR := Steveice10 +endif + # 3DS CONFIGURATION # -TITLE := $(NAME) -DESCRIPTION := Open source CIA installer. -AUTHOR := Steveice10 -PRODUCT_CODE := CTR-P-CFBI -UNIQUE_ID := 0xF8001 +ifeq ($(TARGET),3DS) + LIBRARY_DIRS += $(DEVKITPRO)/libctru + LIBRARIES += citro3d ctru -SYSTEM_MODE := 64MB -SYSTEM_MODE_EXT := Legacy + PRODUCT_CODE := CTR-P-CFBI + UNIQUE_ID := 0xF8001 -ICON_FLAGS := --flags visible,ratingrequired,recordusage --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153 + CATEGORY := Application + USE_ON_SD := true -ROMFS_DIR := romfs -BANNER_AUDIO := meta/audio.wav -BANNER_IMAGE := meta/banner.cgfx -ICON := meta/icon.png + MEMORY_TYPE := Application + SYSTEM_MODE := 64MB + SYSTEM_MODE_EXT := Legacy + CPU_SPEED := 268MHz + ENABLE_L2_CACHE := true + + ICON_FLAGS := --flags visible,ratingrequired,recordusage --cero 153 --esrb 153 --usk 153 --pegigen 153 --pegiptr 153 --pegibbfc 153 --cob 153 --grb 153 --cgsrr 153 + + ROMFS_DIR := romfs + BANNER_AUDIO := meta/audio_3ds.wav + BANNER_IMAGE := meta/banner_3ds.cgfx + ICON := meta/icon_3ds.png +endif + +# Wii U CONFIGURATION # + +ifeq ($(TARGET),WIIU) + LIBRARY_DIRS += + LIBRARIES += + + LONG_DESCRIPTION := Open source CIA installer. + ICON := meta/icon_wiiu.png +endif # INTERNAL # diff --git a/meta/audio.wav b/meta/audio_3ds.wav similarity index 100% rename from meta/audio.wav rename to meta/audio_3ds.wav diff --git a/meta/banner.cgfx b/meta/banner_3ds.cgfx similarity index 100% rename from meta/banner.cgfx rename to meta/banner_3ds.cgfx diff --git a/meta/icon.png b/meta/icon_3ds.png similarity index 100% rename from meta/icon.png rename to meta/icon_3ds.png diff --git a/meta/icon_wiiu.png b/meta/icon_wiiu.png new file mode 100644 index 0000000..a529d62 Binary files /dev/null and b/meta/icon_wiiu.png differ