forked from Aurelio92/RVLoader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
73 lines (62 loc) · 1.52 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
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(DEVKITPPC)),)
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
endif
SUBPROJECTS := dolbooter bootloader installer discloader codehandler libGUI main copy
.PHONY: all forced clean $(SUBPROJECTS)
all: main
forced: clean all
dolbooter:
@echo " "
@echo "Building RVLoader dolbooter"
@echo " "
$(MAKE) -C dolbooter
bootloader: dolbooter
@echo " "
@echo "Building RVLoader bootloader"
@echo " "
$(MAKE) -C bootloader
installer: bootloader
@echo " "
@echo "Building RVLoader installer"
@echo " "
$(MAKE) -C installer
discloader:
@echo " "
@echo "Building RVLoader discloader"
@echo " "
$(MAKE) -C discloader
codehandler:
@echo " "
@echo "Building RVLoader codehandler"
@echo " "
$(MAKE) -C codehandler
libGUI:
@echo " "
@echo "Building RVLoader libGUI"
@echo " "
$(MAKE) -C libGUI install
main: dolbooter bootloader installer discloader codehandler
@echo " "
@echo "Building RVLoader main"
@echo " "
$(MAKE) -C main
copy: main
@echo " "
@echo "Copying build to external drive"
@echo " "
@cp main/boot.dol /media/aurelio/SANDISK/apps/rvloader
@udisksctl unmount -b /dev/sdb
@udisksctl power-off -b /dev/sdb
clean:
@echo " "
@echo "Cleaning all subprojects..."
@echo " "
$(MAKE) -C dolbooter clean
$(MAKE) -C bootloader clean
$(MAKE) -C installer clean
$(MAKE) -C discloader clean
$(MAKE) -C codehandler clean
$(MAKE) -C libGUI clean
$(MAKE) -C main clean