-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
140 lines (108 loc) · 4.12 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
DEBUGFLAGS = -DDEBUG=1
VMFLAGS = -DUSEVM=1
C1541 := /usr/bin/c1541
#X64 := /usr/bin/x64 -autostart-delay-random
#X64 := /usr/bin/x64 -warp -autostart-delay-random
X64 := /usr/bin/x64 -cartcrt final_cartridge.crt -autostart-delay-random
#all: minizork
#all: zork1
#all: dejavu
#all: dragon
all: minform
#all: czechz3
#all: czechz5
#all: strictz3
#all: strictz5
#all: etude
#all: praxix
#all: oztestz3
d64.czechz3:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/czechz3.d64 czechz3.d64
$(C1541) -attach czechz3.d64 -write ozmoo ozmoo
d64.czechz5:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/czechz5.d64 czechz5.d64
$(C1541) -attach czechz5.d64 -write ozmoo ozmoo
d64.etude:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/etude.d64 etude.d64
$(C1541) -attach etude.d64 -write ozmoo ozmoo
d64.praxix:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/praxix.d64 praxix.d64
$(C1541) -attach praxix.d64 -write ozmoo ozmoo
d64.oztestz5:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/oztestz5.d64 oztest.d64
$(C1541) -attach oztest.d64 -write ozmoo ozmoo
d64.oztestz3:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/oztestz3.d64 oztest.d64
$(C1541) -attach oztest.d64 -write ozmoo ozmoo
d64.strictz3:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/strictz3.d64 strictz3.d64
$(C1541) -attach strictz3.d64 -write ozmoo ozmoo
d64.strictz5:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp test/strictz5.d64 strictz5.d64
$(C1541) -attach strictz5.d64 -write ozmoo ozmoo
d64.minform2:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp minform/minform.d64 minform.d64
$(C1541) -attach minform.d64 -write ozmoo ozmoo
get-story-start:
$(eval storystart := $(shell grep story_start acme_labels.txt | sed 's/[^0-9]//g' | sed 's/^/ibase=16;/' | bc))
$(info $(storystart))
d64.minform-compile:
acme -DDYNMEM_ALREADY_LOADED=1 -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
d64.minform: d64.minform-compile get-story-start
exomizer/src/exomizer sfx basic ozmoo minform/minform.dynmem,$(storystart) -o ozmoo_zip
cp minform/minform.d64 minform.d64
$(C1541) -attach minform.d64 -write ozmoo_zip ozmoo
d64.minizork:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp infocom/minizork.d64 minizork.d64
$(C1541) -attach minizork.d64 -write ozmoo ozmoo
d64.zork1:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp infocom/zork1.d64 zork1.d64
$(C1541) -attach zork1.d64 -write ozmoo ozmoo
d64.dejavu:
acme -DZ3=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile oz ozmoo.asm
exomizer/src/exomizer sfx basic oz -o ozmoo
cp examples/dejavu.d64 dejavu.d64
$(C1541) -attach dejavu.d64 -write ozmoo ozmoo
d64.dragon:
acme -DZ5=1 $(DEBUGFLAGS) $(VMFLAGS) --cpu 6510 --format cbm -l acme_labels.txt --outfile ozmoo ozmoo.asm
cp examples/dragontroll.d64 dragontroll.d64
$(C1541) -attach dragontroll.d64 -write ozmoo ozmoo
minizork: d64.minizork
$(X64) minizork.d64
zork1: d64.zork1
$(X64) zork1.d64
dejavu: d64.dejavu
$(X64) dejavu.d64
dragon: d64.dragon
$(X64) dragontroll.d64
minform: d64.minform
$(X64) minform.d64
etude: d64.etude
$(X64) etude.d64
praxix: d64.praxix
$(X64) praxix.d64
oztestz3: d64.oztestz3
$(X64) oztest.d64
oztestz5: d64.oztestz5
$(X64) oztest.d64
strictz3: d64.strictz3
$(X64) strictz3.d64
strictz5: d64.strictz5
$(X64) strictz5.d64
czechz5: d64.czechz5
$(X64) czechz5.d64
czechz3: d64.czechz3
$(X64) czechz3.d64
clean:
rm -f ozmoo *.d64