-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
54 lines (47 loc) · 1.86 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
.PHONY: all clean
#---------------------------------------------------------------------------------
# TriPlayer version
#---------------------------------------------------------------------------------
export VER_MAJOR := 1
export VER_MINOR := 1
export VER_MICRO := 1
#---------------------------------------------------------------------------------
all:
@echo -e '\033[1m>> Common (minIni)\033[0m'
@$(MAKE) -s -C Common/libs/minIni
@echo -e '\033[1m>> Common (Splash)\033[0m'
@$(MAKE) -s -C Common/libs/splash
@echo -e '\033[1m>> Common (SQLite)\033[0m'
@$(MAKE) -s -C Common/libs/SQLite
@echo -e '\033[1m>> Application\033[0m'
@$(MAKE) -s -C Application/
@echo -e '\033[1m>> Overlay\033[0m'
@$(MAKE) -s -C Overlay/
@echo -e '\033[1m>> Sysmodule\033[0m'
@$(MAKE) -s -C Sysmodule/
@echo -e '\033[1m>> SD Card\033[0m'
@mkdir -p sdcard
@mkdir -p sdcard/switch/TriPlayer
@cp Application/TriPlayer.nro sdcard/switch/TriPlayer
@mkdir -p sdcard/switch/.overlays
@cp Overlay/ovl-TriPlayer.ovl sdcard/switch/.overlays
@mkdir -p sdcard/atmosphere/contents/4200000000000FFF/flags
@touch sdcard/atmosphere/contents/4200000000000FFF/flags/boot2.flag
@cp Sysmodule/sys-triplayer.nsp sdcard/atmosphere/contents/4200000000000FFF/exefs.nsp
@echo -e '\033[1m>> Done! Copy ./sdcard to the root of your SD Card :)\033[0m'
clean:
@echo -e '\033[1m>> Common (minIni)\033[0m'
@$(MAKE) -s -C Common/libs/minIni clean
@echo -e '\033[1m>> Common (Splash)\033[0m'
@$(MAKE) -s -C Common/libs/splash clean
@echo -e '\033[1m>> Common (SQLite)\033[0m'
@$(MAKE) -s -C Common/libs/SQLite clean
@echo -e '\033[1m>> Application\033[0m'
@$(MAKE) -s -C Application/ clean-all
@echo -e '\033[1m>> Overlay\033[0m'
@$(MAKE) -s -C Overlay/ clean
@echo -e '\033[1m>> Sysmodule\033[0m'
@$(MAKE) -s -C Sysmodule/ clean
@echo -e '\033[1m>> SD Card\033[0m'
@rm -rf sdcard
@echo -e '\033[1m>> Done!\033[0m'