forked from triforce-percent/triforce-percent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
87 lines (76 loc) · 2.17 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
include toolchain/make/main.mk
CONTENTS = actor/ anim/ model/ music/ scene/ textures/ voice/
SUBDIRS = toolchain/ $(CONTENTS) loader/ statics/ bootstrap/ rom-setup/
DUMP = build-romhack/project.zzrpl
.PHONY: default clean $(SUBDIRS)
default: $(SUBDIRS)
@echo "=============\nDone building\n============="
clean: $(SUBDIRS)
@echo "=============\nDone cleaning\n============="
actor/: toolchain/ $(DUMP) statics/ scene/
scene/: $(DUMP)
statics/: anim/ loader/ model/ scene/ textures/ voice/
bootstrap/: loader/
rom-setup/: statics/ $(CONTENTS)
# All the deleting scene title images is because we need dmadata entries for custom
# content for the romhack version.
%project.zzrpl: %oot_1.0U_uncomp.z64 toolchain/zzrtl/oot_dump.rtl
cp toolchain/zzrtl/oot_dump.rtl $*oot_dump.rtl
$(ZZRTL) $*oot_dump.rtl
touch $*update.txt
rm $*scene/0/title.png
rm $*scene/1/title.png
rm $*scene/2/title.png
rm $*scene/3/title.png
rm $*scene/4/title.png
rm $*scene/5/title.png
rm $*scene/6/title.png
rm $*scene/7/title.png
rm $*scene/8/title.png
rm $*scene/9/title.png
rm $*scene/11/title.png
rm $*scene/13/title.png
rm $*scene/16/title.png
rm $*scene/30/title.png
rm $*scene/31/title.png
rm $*scene/32/title.png
rm $*scene/33/title.png
rm $*scene/34/title.png
rm $*scene/44/title.png
rm $*scene/45/title.png
rm $*scene/46/title.png
rm $*scene/47/title.png
rm $*scene/48/title.png
rm $*scene/49/title.png
rm $*scene/50/title.png
rm $*scene/51/title.png
rm $*scene/54/title.png
rm $*scene/56/title.png
rm $*scene/58/title.png
rm $*scene/59/title.png
rm $*scene/60/title.png
rm $*scene/61/title.png
rm $*scene/65/title.png
rm $*scene/66/title.png
rm $*scene/68/title.png
rm $*scene/69/title.png
rm $*scene/70/title.png
rm $*scene/72/title.png
rm $*scene/73/title.png
rm $*scene/74/title.png
rm $*scene/75/title.png
rm $*scene/78/title.png
rm $*scene/80/title.png
rm $*scene/82/title.png
rm $*scene/83/title.png
rm $*scene/87/title.png
rm $*scene/92/title.png
rm $*scene/94/title.png
rm $*scene/95/title.png
rm $*scene/96/title.png
rm $*scene/97/title.png
rm $*scene/98/title.png
rm $*scene/99/title.png
rm $*scene/100/title.png
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)