diff options
author | stefan <stefan@s00.xyz> | 2023-05-24 22:29:46 -0400 |
---|---|---|
committer | stefan <stefan@s00.xyz> | 2023-05-24 22:29:46 -0400 |
commit | 20621e073562ee5d423b636fae8b6aa8e38275fa (patch) | |
tree | 4a81bde039e58602e44a213cfb8d91a65f1dadd9 /Makefile | |
parent | ba2b9c8a1bb1876b6eb4c9783fde798b19de4418 (diff) | |
download | evm-20621e073562ee5d423b636fae8b6aa8e38275fa.tar.gz |
readme and cleanup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4beb6f1 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +TEST?=test/add.easm # you can use the enviornment variable TEST to specify what binary the "test" target will run +BIN=${TEST:%.easm=%.bin} + +build/vm: + mkdir -p build + (cd vm && go build -o ../$@) + +build/as: + (cd as && go build -o ../$@) + +test: build/vm ${BIN} + ./build/vm ${BIN} + +clean: + rm -rf build test/*.bin + +%.bin: %.easm build/as + ./build/as $< -o $@ + +.PHONY: test |