Added a cargo-make config for easier testing

master
Wynd 2024-10-21 17:46:18 +03:00
parent f88072f7ac
commit fdefd706a9
1 changed files with 34 additions and 0 deletions

34
Makefile.toml 100644
View File

@ -0,0 +1,34 @@
[tasks.compile-bf]
clear = true
private = true
command = "cargo"
args = ["run", "--release", "--", "${@}"]
[tasks.move]
clear = true
private = true
command = "mv"
args = ["./demo.asm", "./asm/demo.asm"]
dependencies = ["compile-bf"]
[tasks.assemble]
private = true
command = "nasm"
args = ["-felf64", "./asm/demo.asm"]
dependencies = ["move"]
[tasks.link]
clear = true
private = true
command = "ld.lld"
args = ["./asm/demo.o", "-o", "./asm/demo"]
dependencies = ["assemble"]
[tasks.compile]
clear = true
dependencies = ["link"]
[tasks.test]
clear = true
command = "./asm/demo"
dependencies = ["link"]