forked from xjsxjs197/WiiSXRX_2022
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
90 lines (75 loc) · 2.46 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
#This is just here for convenience
#Call "make help" for available commands
ifndef ECHO
ECHO = echo
endif
VERSION = beta2.5
.PHONY: all Wii Wii_Release
#all:
# @$(ECHO) "Rebuilding Wii and logging to build.log..."
# @$(MAKE) -C Gamecube clean -f Makefile_Wii
# @$(MAKE) -C Gamecube -f Makefile_Wii 2> temp.log
# #This step removes all leading pathes from the build.log
# @sed 's|.*wiisxr/Gamecube|/wiisxr/Gamecube|;s|/./|/|;s|\r\n|\n|' temp.log > build.log
# #note that msys doesn't seem to like sed -i
# @rm temp.log
all: Wii Wii_Release
lightrecNoLog.a:
@echo " "
@echo "Building lightrecNoLog.a library for PPC"
@echo " "
$(MAKE) -C deps/lightrec -f Makefile.NoLog
lightrecWithLog.a:
@echo " "
@echo "Building lightrecWithLog.a library for PPC"
@echo " "
$(MAKE) -C deps/lightrec -f Makefile.WithLog
zstd.a:
@echo " "
@echo "Building zstd.a library for PPC"
@echo " "
$(MAKE) -C deps/libchdr/deps/zstd-1.5.6 -f Makefile.wii
lzma.a:
@echo " "
@echo "Building lzma.a library for PPC"
@echo " "
$(MAKE) -C deps/libchdr/deps/lzma-19.00 -f Makefile.wii
zlibstatic.a:
@echo " "
@echo "Building zlibstatic.a library for PPC"
@echo " "
$(MAKE) -C deps/libchdr/deps/zlib-1.3.1 -f Makefile.wii
chdrstatic.a:
@echo " "
@echo "Building chdrstatic.a library for PPC"
@echo " "
$(MAKE) -C deps/libchdr -f Makefile.wii
Wii: lightrecWithLog.a zstd.a lzma.a zlibstatic.a chdrstatic.a
@$(ECHO) "Building Wii..."
@$(MAKE) -C Gamecube -f Makefile_Wii
Wii_Release: lightrecNoLog.a zstd.a lzma.a zlibstatic.a chdrstatic.a
@$(ECHO) "Building Wii_Release..."
@$(MAKE) -C Gamecube -f Makefile_Wii_Release
#GC:
# @$(ECHO) "Building GC..."
# @$(MAKE) -C Gamecube -f Makefile_GC
dist: Wii
@$(MAKE) -C Gamecube/release/ VERSION=$(VERSION)
clean:
@$(ECHO) "Cleaning..."
@$(MAKE) -C deps/lightrec clean -f Makefile.NoLog
@$(MAKE) -C deps/lightrec clean -f Makefile.WithLog
@$(MAKE) -C deps/libchdr/deps/zstd-1.5.6 clean -f Makefile.wii
@$(MAKE) -C deps/libchdr/deps/lzma-19.00 clean -f Makefile.wii
@$(MAKE) -C deps/libchdr/deps/zlib-1.3.1 clean -f Makefile.wii
@$(MAKE) -C deps/libchdr clean -f Makefile.wii
@$(MAKE) -C Gamecube clean -f Makefile_Wii
@$(MAKE) -C Gamecube clean -f Makefile_Wii_Release
help:
@$(ECHO)
@$(ECHO) "Available commands:"
@$(ECHO)
@$(ECHO) "make # cleans, rebuilds and log errors (Wii)"
@$(ECHO) "make Wii # build everything (Wii)"
@$(ECHO) "make GC # build everything (Gamecube)"
@$(ECHO) "make clean # clean everything"