-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
91 lines (60 loc) · 1.96 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# 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 := Homebrew_Launcher
BUILD_DIR := build
OUTPUT_DIR := output
INCLUDE_DIRS := $(SOURCE_DIRS) include
SOURCE_DIRS := source source/json source/allocator
EXTRA_OUTPUT_FILES :=
LIBRARY_DIRS := $(PORTLIBS) $(CTRULIB)
LIBRARIES := citro3d ctru png z m
VERSION_MAJOR := 1
VERSION_MINOR := 0
VERSION_MICRO := 0
BUILD_FLAGS := -march=armv6k -mtune=mpcore -mfloat-abi=hard
BUILD_FLAGS_CC := -g -Wall -Werror -Wno-strict-aliasing -O3 -mword-relocations \
-fomit-frame-pointer -ffast-math $(ARCH) $(INCLUDE) -D__3DS__ $(BUILD_FLAGS) \
-DAPP_VERSION_MAJOR=${VERSION_MAJOR} \
-DAPP_VERSION_MINOR=${VERSION_MINOR} \
-DAPP_VERSION_MICRO=${VERSION_MICRO}
BUILD_FLAGS_CXX := $(COMMON_FLAGS) -std=gnu++11
RUN_FLAGS :=
# 3DS/Wii U CONFIGURATION #
ifeq ($(TARGET),$(filter $(TARGET),3DS WIIU))
TITLE := Homebrew Launcher
DESCRIPTION := HBL
AUTHOR := By Many People
endif
# 3DS CONFIGURATION #
ifeq ($(TARGET),3DS)
LIBRARY_DIRS += $(DEVKITPRO)/libctru $(DEVKITPRO)/portlibs/3ds/
LIBRARIES += citro3d ctru png z m
PRODUCT_CODE := HBL-LDR
UNIQUE_ID := 0xd921e
CATEGORY := Application
USE_ON_SD := true
MEMORY_TYPE := Application
SYSTEM_MODE := 64MB
SYSTEM_MODE_EXT := Legacy
CPU_SPEED := 268MHz
ENABLE_L2_CACHE := false
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 := resources/audio.cwav
BANNER_IMAGE := resources/banner.cgfx
ICON := resources/icon.png
LOGO := resources/logo.bcma.lz
endif
# INTERNAL #
include buildtools/make_base
re:
@rm -rf $(BUILD_DIR)
echo cleaned build dir
make