blob: 4beb6f19a30fbc2e70821281ff0d3bbccc16ca1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|