-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathMakefile
71 lines (50 loc) · 1.39 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# TARGET #
TARGET := 3DS
LIBRARY := 0
ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU))
ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro")
endif
endif
# PORTLIBS #
export PORTLIBS_PATH := $(DEVKITPRO)/portlibs
PORTLIBS := $(PORTLIBS_PATH)/armv6k $(PORTLIBS_PATH)/3ds
# COMMON CONFIGURATION #
NAME := Themely
BUILD_DIR := build
OUTPUT_DIR := output
INCLUDE_DIRS := include
SOURCE_DIRS := source
EXTRA_OUTPUT_FILES :=
LIBRARY_DIRS := $(DEVKITPRO)/libctru $(PORTLIBS)
LIBRARIES := vorbisidec ogg sf2d sftd freetype png citro3d ctru z
BUILD_FLAGS := -DVERSION='"1.2.1"'
RUN_FLAGS :=
# 3DS/Wii U CONFIGURATION #
ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU))
TITLE := Themely
DESCRIPTION := A beautiful theme manager
AUTHOR := erman1337
endif
# 3DS CONFIGURATION #
ifeq ($(TARGET),3DS)
LIBRARY_DIRS += $(DEVKITPRO)/libctru
LIBRARIES += ctru
PRODUCT_CODE := CTR-P-TMLY
UNIQUE_ID := 0x374E5
CATEGORY := Application
USE_ON_SD := true
MEMORY_TYPE := Application
SYSTEM_MODE := 64MB
SYSTEM_MODE_EXT := 124MB
CPU_SPEED := 804MHz
ENABLE_L2_CACHE := true
ICON_FLAGS :=
ROMFS_DIR := romfs
BANNER_AUDIO := meta/audio_3ds.wav
BANNER_IMAGE := meta/banner_3ds.png
ICON := meta/icon_3ds.png
LOGO := meta/logo_3ds.lz11
endif
# INTERNAL #
include buildtools/make_base