-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (38 loc) · 1.53 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
PASMO := docker run -v $(PWD):/work -w="/work" -it charlottegore/pasmo pasmo -I src
BIN := bin
FUSE ?= fuse
.PHONY: test clean run
clean:
rm -rf $(BIN)
$(BIN):
mkdir $(BIN)
$(BIN)/zx-spec-green.tap: test/test-passes.asm $(BIN)
$(PASMO) --tapbas $< $@
$(BIN)/zx-spec-red.tap: test/test-failures.asm $(BIN)
$(PASMO) --tapbas $< $@
$(BIN)/zx-spec-mixture.tap: test/test-verbose-mix.asm $(BIN)
$(PASMO) --tapbas $< $@
$(BIN)/zx-spec-hex.tap: test/test-hex.asm $(BIN)
$(PASMO) --tapbas $< $@
$(BIN)/checkout-kata.tap: examples/checkout-kata.asm $(BIN)
$(PASMO) --tapbas $< $@
$(BIN)/test-passes.tap: test/test-passes.asm $(BIN)
$(PASMO) --equ zxspec_test_mode --tapbas $< $@
$(BIN)/test-failures.tap: test/test-failures.asm $(BIN)
$(PASMO) --equ zxspec_test_mode --tapbas $< $@
$(BIN)/test-hex.tap: test/test-hex.asm $(BIN)
$(PASMO) --equ zxspec_test_mode --tapbas $< $@
$(BIN)/test-verbose-mix.tap: test/test-verbose-mix.asm $(BIN)
$(PASMO) --equ zxspec_test_mode --tapbas $< $@
test: $(BIN)/test-passes.tap $(BIN)/test-failures.tap $(BIN)/test-hex.tap $(BIN)/test-verbose-mix.tap
./test.py
demo-mix: $(BIN)/zx-spec-mixture.tap
$(FUSE) --tape $< --auto-load --no-autosave-settings
demo-green: $(BIN)/zx-spec-green.tap
$(FUSE) --tape $< --auto-load --no-autosave-settings
demo-red: $(BIN)/zx-spec-red.tap
$(FUSE) --tape $< --auto-load --no-autosave-settings
demo-hex: $(BIN)/zx-spec-hex.tap
$(FUSE) --tape $< --auto-load --no-autosave-settings
checkout-kata: $(BIN)/checkout-kata.tap
$(FUSE) --tape $< --auto-load --no-autosave-settings