aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b11d03bbec50d2b34d570a4c28e8ffacd4c730a4 (plain)
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
.PHONY: all

py = /usr/bin/env python3
digital_path = $(HOME)/.local/share/Digital/digital.jar

start-digital:
	java -jar $(digital_path) &

# make assemble asm=src/program.atk16 out=out/program.bin
assemble:
	$(py) atk16_asm/assembler.py $(asm) $(out)

# make gen-ucode out=out/ucode.bin
gen-ucode:
	$(py) atk16_utils/ucode.py $(out)

# make gen-charmem out=out/charmem.bin
gen-charmem:
	$(py) atk16_utils/charmem.py $(out)

# make convert-ttf in=font.ttf out=charset.txt
convert-ttf:
	$(py) atk16_utils/convert_ttf.py $(in) $(out)

# make dig-install bin=out/program.bin dig=digital/atk16_mem.dig label=MEM_ROM
dig-install:
	$(py) atk16_utils/dig_install.py $(bin) $(dig) $(label)

# make ast-compile in=asm/test_py_src.py out=asm/test_py_src.atk16
ast-compile:
	$(py) atk16_ast_walking_compiler/compiler.py $(in) $(out)

# make bytecode-compile in=asm/test_py_src.py out=asm/test_py_src.atk16
bytecode-compile:
	$(py) atk16_bytecode_compiler/compiler.py $(in) $(out)

# make emu in=rom.bin
emu:
	$(py) -m atk16_emu.cli $(in)

# make test
test:
	$(py) atk16_asm/test_alu.py digital_diagrams/atk16_alu.dig

run-single-test:
	java -cp $(digital_path) CLI test -verbose -circ $(circ) -tests $(tests)