-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (60 loc) · 1.41 KB
/
Makefile
File metadata and controls
74 lines (60 loc) · 1.41 KB
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
OVL_US += BATTLE/BATINI.X
OVL_US += BATTLE/BATRES.X
OVL_US += BATTLE/BATTLE.X
OVL_US += BATTLE/BROM.X
OVL_US += FIELD/FIELD.BIN
OVL_US += MINI/CHOCOBO.BIN
OVL_US += WORLD/WORLD.BIN
.PHONY: all
all: disks build
.PHONY: build
build: bin/cc1-psx-26 bin/cc1-psx-272 bin/str disks/us/FIELD/FIELD.BIN.dec
@./mako.sh build
disks/us/FIELD/FIELD.BIN.dec:
@for f in $(OVL_US); do \
tail --bytes=+9 "disks/us/$$f" | gzip -cd > "disks/us/$$f.dec"; \
done
.PHONY: disks
disks: disks/us
disks/%.iso:
bchunk "disks/$*.bin" "disks/$*.cue" "$@"
mv "disks/$*.iso01.iso" "$@"
disks/us: disks/Final\ Fantasy\ VII\ (USA)\ (Disc\ 1).iso
7z x "$<" -o$@
disks/betaus: disks/Final\ Fantasy\ VII\ (USA)\ (Interactive\ Sampler\ CD).iso
7z x "$<" -o$@
.PHONY: clean
clean:
@./mako.sh clean
.PHONY: format
format:
@./mako.sh format
.PHONY: rebuild
rebuild:
@./mako.sh clean
@./mako.sh build
.PHONY: submit
submit:
@./mako.sh clean
@./mako.sh build
@./mako.sh format
@git add config/ include/ src/
.PHONY: report
report: build
@./mako.sh report us build/report.json
.PHONY: requirements
requirements:
python3 -m venv .venv
.venv/bin/pip3 install -r requirements.txt
build/us/%.o: %
ninja $@
bin/str: tools/str.c
gcc -s -o $@ -O2 $<
chmod +x $@
bin/%: bin/%.gz
sha256sum --check $<.sha256
gzip -kcd $< > $@
touch $@
chmod +x $@
bin/%.gz: bin/%.gz.sha256
wget -O $@ https://github.com/Xeeynamo/ff7-decomp/releases/download/init/$*.gz