-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (63 loc) · 1.78 KB
/
Makefile
File metadata and controls
77 lines (63 loc) · 1.78 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
75
76
77
PYTHON=python
FUSE=/Applications/Fuse.app/Contents/MacOS/Fuse
PASMO=./pasmo
TZXLIST=./tzxlist
TAPE2WAV=./tape2wav
EXORAW=./exomizer207/src/exoraw
TAPECONV=./tapeconv
CC=clang
ZX7=./zx7compress
all: versaload.tzx versaload.wav
%.bin: %.asm
$(PASMO) --bin $< $@ $<gl
%.asmgl: %.asm
$(PASMO) --bin $< $@ $<gl
%.wav: %.tzx
$(TAPE2WAV) -r 96000 $< $@
# Exomizer rules - see http://www.amstrad.es/forum/viewtopic.php?f=6&p=43320
#
%.exo: %
# For use with deexo.asm
$(EXORAW) $< -o $@
%.exo_simple: %
# For use with deexo_simple.asm
$(EXORAW) $< -c -o $@
%.exo_b: %
# For use with deexo_b.asm
$(EXORAW) $< -b -o $@
%.exo_simple_b: %
# For use with deexo_simple_b.asm
$(EXORAW) $< -b -c -o $@
# ZX7 rules
%.zx7: % zx7compress
$(ZX7) $< $@
setbaud.asm: setbaud.py
# Autogenerate setbaud.asm
$(PYTHON) setbaud.py
boot2.bin: setbaud.bin
boot1.bin: boot2.bin
test_packed.bin: test.raw.exo_b
test2_packed.bin: test2.raw.exo_b
test.tzx: boot1.bin test.scr buildtzx.py print.bin genfont.bin test_packed.bin
# Construct loader
$(PYTHON) buildtzx.py
# Add loading screen metadata to TZX
$(TAPECONV) -s test.scr test.tzx test.tzx
# Report loading time
$(TZXLIST) test.tzx
test2.tzx: boot1.bin test2.scr buildtzx.py print.bin test2_packed.bin
# Construct loader
$(PYTHON) test2.py
# Add loading screen metadata to TZX
$(TAPECONV) -s test2.scr test2.tzx test2.tzx
# Report loading time
$(TZXLIST) test2.tzx
fuse: test.tzx
$(FUSE) --machine plus2 --no-detect-loader --tape test.tzx
fuse2: test2.tzx
$(FUSE) --machine plus2 --no-detect-loader --tape test2.tzx
zx7compress: zx7/src/compress.c zx7/src/optimize.c zx7/src/zx7.c
$(CC) zx7/src/compress.c zx7/src/optimize.c zx7/src/zx7.c -o zx7compress
clean:
rm -f *.bin *.tzx *.wav *.asmgl *.exo *.exo_b *.exo_simple *.exo_simple_b *.zx7
rm -f setbaud.asm