-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (25 loc) · 820 Bytes
/
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
.PHONY: all clean run
PRG_IMAGE = "bin/matrix.prg"
XVIC_IMAGE = "bin/matrix-vic20.prg"
X64 = x64
XVIC = xvic
X64SC = x64sc
C1541 = c1541
all: clean run
vic: clean vic runvic
matrix.prg: src/c64/matrix.asm
64tass -Wall -Wno-implied-reg --cbm-prg -o bin/matrix.prg -L bin/list-co1.txt -l bin/labels.txt src/c64/matrix.asm
md5sum bin/matrix.prg bin/matrix-bench.prg
matrix-vic20.prg: src/vic20/matrix.asm
64tass -Wall -Wno-implied-reg --cbm-prg -o bin/matrix-vic20.prg -L bin/list-co1.txt -l bin/labels.txt src/vic20/matrix.asm
md5sum bin/matrix-vic20.prg orig/matrix-vic20.prg
runvic: matrix-vic20.prg
$(XVIC) -drive8ram2000 -memory 8k -verbose $(XVIC_IMAGE)
run: matrix.prg
$(X64) -verbose $(PRG_IMAGE)
clean:
-rm $(PRG_IMAGE)
-rm $(XVIC_IMAGE)
-rm bin/matrix.prg
-rm bin/matrix-vic20.prg
-rm bin/*.txt