forked from ScarletStudy/DGS1-Patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
82 lines (66 loc) · 1.82 KB
/
Makefile.common
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
dirname = $(shell dirname $(1))
rwildcard = $(foreach d, $(wildcard $1*), \
$(filter $(subst *, %, $2), $d) \
$(call rwildcard, $d/, $2))
FLAVOR ?= GodMode9
SPLASH = resources/$(FLAVOR)_splash.png
ifeq ($(FLAVOR),SafeMode9)
CFLAGS += -DSAFEMODE
else ifeq ($(FLAVOR),GodMode64)
OVERRIDE_FONT := resources/fonts/font_c64_8x8.pbm
CFLAGS += -DDEFAULT_FONT=\"font_c64_8x8.pbm\"
CFLAGS += -DCOLOR_STD_FONT=0xD5717B
CFLAGS += -DCOLOR_STD_BG=0xA43041
else ifeq ($(FLAVOR),BrickedMode9)
OVERRIDE_FONT := resources/fonts/font_nbraille_4x6.pbm
CFLAGS += -DDEFAULT_FONT=\"font_nbraille_4x6.pbm\"
CFLAGS += -DCOLOR_STD_FONT=0x00FFFF
CFLAGS += -DCOLOR_STD_BG=0xFF0000
else ifeq ($(FLAVOR),ZuishMode9)
OVERRIDE_FONT := resources/fonts/font_zuish_8x8.pbm
CFLAGS += -DDEFAULT_FONT=\"font_zuish_8x8.pbm\"
endif
ifeq ($(SALTMODE),1)
CFLAGS += -DSALTMODE
endif
ifeq ($(SWITCH_SCREENS),1)
CFLAGS += -DSWITCH_SCREENS
endif
ifeq ($(SCRIPT_RUNNER),1)
CFLAGS += -DSCRIPT_RUNNER
endif
ifeq ($(AUTO_UNLOCK),1)
CFLAGS += -DAUTO_UNLOCK
endif
ifeq ($(TIMER_UNLOCK),1)
CFLAGS += -DTIMER_UNLOCK
endif
ifeq ($(HIDE_HIDDEN),1)
CFLAGS += -DHIDE_HIDDEN
endif
ifeq ($(SHOW_FREE),1)
CFLAGS += -DSHOW_FREE
endif
ifdef FIXED_BRIGHTNESS
CFLAGS += -DFIXED_BRIGHTNESS=$(FIXED_BRIGHTNESS)
endif
ifdef SD_TIMEOUT
CFLAGS += -DSD_TIMEOUT=$(SD_TIMEOUT)
endif
ifdef N_PANES
CFLAGS += -DN_PANES=$(N_PANES)
endif
ifeq ($(MONITOR_HEAP),1)
CFLAGS += -DMONITOR_HEAP
endif
ifdef NTRBOOT
FTFLAGS = -S spi-retail
FTDFLAGS = -S spi-dev
FIRM = $(OUTDIR)/$(FLAVOR)_ntr.firm
FIRMD = $(OUTDIR)/$(FLAVOR)_ntr_dev.firm
else
FTFLAGS = -S nand-retail
FTDFLAGS = -S nand-dev
FIRM = $(OUTDIR)/$(FLAVOR).firm
FIRMD = $(OUTDIR)/$(FLAVOR)_dev.firm
endif