diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-04-26 15:40:14 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-04-26 15:40:14 +0300 |
| commit | 7ca56c1a730fcecd0fe3af5e6b652fa09514a18b (patch) | |
| tree | e2ef6a4d28fa26adf11e00d138ef21b8316497f6 /Makefile | |
| parent | 2b18b320e97260f1d27143a37fe14953cf62e56d (diff) | |
Refactor project structure, add README and LICENSE
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 51 |
1 files changed, 9 insertions, 42 deletions
@@ -1,54 +1,21 @@ -.PHONY: all test install +.PHONY: all test start-digital py = /usr/bin/env python3 digital_path = $(HOME)/.local/share/Digital/digital.jar PREFIX=/usr/local +all: + @echo "See Makefile for available commands" + exit 1 + +# make start-digital 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-digital-alu -test-digital-alu: - $(py) atk16_asm/test_alu.py digital_diagrams/atk16_alu.dig - # make test test: pytest --ignore resources -install: - pip install . - -run-single-test: - java -cp $(digital_path) CLI test -verbose -circ $(circ) -tests $(tests) +# DEPRECATED: focusing on emulator E2E tests for now instead of sim model tests +#run-single-test: +# java -cp $(digital_path) CLI test -verbose -circ $(circ) -tests $(tests) |
