-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
94 lines (71 loc) · 2.16 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
91
92
93
94
.PHONY: all clean
output_bin := zelda.bin zelda_PAL60.bin audio.bin
zelda_dep := main.asm \
$(wildcard include/*.asm) \
$(wildcard b/*.asm) \
$(wildcard c/*.asm) \
$(wildcard el/*.asm) \
$(wildcard en/*.asm) \
$(wildcard ht/*.asm) \
$(wildcard pl/*.asm) \
$(wildcard rs/*.asm) \
$(wildcard spr/*.asm) \
$(wildcard scroll/*.asm) \
kworld.asm \
gen/atan2.asm \
gen/world/b1world.asm \
gen/Rs_DelLUT.asm \
gen/mesg_data_0A.asm \
gen/ms_header.asm \
gen/bitcount.asm \
gen/HtTask_Scripts.asm \
gen/pf_destroy.asm \
gen/spr_tri.asm \
gen/EnDraw_BossManhandlaGen.asm \
gen/editor_color.txt \
gen/editor_en_bindings.txt \
pfscroll_proto_dep := pfscroll_proto.asm \
$(wildcard scroll/*.asm)
all: $(output_bin)
init:
mkdir -p gen/world
python3 py/color.py
deptest:
echo $(zelda_dep)
clean:
echo $(output_bin)
$(RM) -r $(output_bin) gen
mkdir -p gen/world
audio.bin: gen/ms_header.asm audio.asm
dasm audio.asm -f3 -oaudio.bin -saudio.sym -T1 -Iinclude
proto.bin: proto.asm
dasm proto.asm -f3 -oproto.bin -sproto.sym -T1 -Iinclude
pfscroll.bin: $(pfscroll_proto_dep)
dasm pfscroll_proto.asm -f3 -opfscroll.bin -spfscroll.sym -T1 -Iinclude
zelda.bin: $(zelda_dep)
dasm main.asm -f3 -ozelda_PAL60.bin -DPAL60 -Iinclude $(flags)
dasm main.asm -f3 -ozelda.bin -szelda.sym -T1 -Iinclude $(flags)
gen/Rs_DelLUT.asm: py/mesg.py py/ptr.py
python3 py/ptr.py
gen/ms_header.asm: py/sound_common.py py/seq.py py/sound.py
python3 py/sound.py
gen/mesg_data_0A.asm: py/mesg.py py/text.py
python3 py/text.py
gen/world/b1world.asm: world/w0.bin world/w1.bin py/world.py world/w0encounter.txt world/w1encounter.txt world/w2encounter.txt
python3 py/world.py
gen/atan2.asm: py/atan2.py
python3 py/atan2.py
gen/editor_color.txt: py/color.py
python3 py/color.py
gen/editor_en_bindings.txt: py/encounter.py
python3 py/encounter.py
gen/bitcount.asm: py/bitcount.py
python3 py/bitcount.py
gen/HtTask_Scripts.asm: py/httask_scripts.py
python3 py/httask_scripts.py
gen/pf_destroy.asm: py/pf_destroy.py
python3 py/pf_destroy.py
gen/spr_tri.asm: py/spr_tri.py
python3 py/spr_tri.py
gen/EnDraw_BossManhandlaGen.asm: py/spr_manhandla.py
python3 py/spr_manhandla.py