forked from FlagBrew/PKSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RosalinaPKSM.Makefile
80 lines (58 loc) · 1.88 KB
/
RosalinaPKSM.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
72
73
74
75
76
77
78
79
80
# 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
# COMMON CONFIGURATION #
NAME := PKSM
BUILD_DIR := build/rosalina/PKSM
OUTPUT_DIR := output/rosalina/PKSM
INCLUDE_DIRS :=
SOURCE_DIRS := source/memecrypto/source source
EXTRA_OUTPUT_FILES :=
PORTLIBS_PATH := $(DEVKITPRO)/portlibs
PORTLIBS := $(PORTLIBS_PATH)/armv6k $(PORTLIBS_PATH)/3ds
CTRULIB ?= $(DEVKITPRO)/libctru
LIBRARY_DIRS := $(PORTLIBS) $(CTRULIB)
LIBRARIES := sfil sftd freetype png z sf2d citro3d ctru m
BUILD_FLAGS := -DROSALINA_3DSX -march=armv6k -mtune=mpcore -mfloat-abi=hard
BUILD_FLAGS_CC := -g -Wall -O2 -mword-relocations \
-fomit-frame-pointer -ffast-math \
$(BUILD_FLAGS) $(INCLUDE) -DARM11 -D_3DS
BUILD_FLAGS_CXX := $(BUILD_FLAGS_CC) -fno-rtti -fno-exceptions -std=gnu++11
RUN_FLAGS :=
VERSION_MAJOR := 4
VERSION_MINOR := 3
VERSION_MICRO := 0
REMOTE_IP := 192.168.1.7
# 3DS/Wii U CONFIGURATION #
ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU))
TITLE := $(NAME)
DESCRIPTION := AIO tool for Pokemon games
AUTHOR := Bernardo Giordano, PKSM devs
endif
# 3DS CONFIGURATION #
ifeq ($(TARGET),3DS)
LIBRARY_DIRS +=
LIBRARIES +=
PRODUCT_CODE := CTR-HB-PKSM
UNIQUE_ID := 0xEC100
CATEGORY := Application
USE_ON_SD := true
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 := assets/romfs
BANNER_AUDIO := assets/audio.wav
BANNER_IMAGE := assets/banner.png
ICON := assets/icon.png
LOGO :=
endif
# INTERNAL #
include buildtools/make_base