planckforth/Makefile
2021-05-06 00:11:38 +09:00

22 lines
441 B
Makefile

# planckforth -
# Copyright (C) 2021 nineties
default: i386-linux-handwritten
i386-linux-handwritten: planck.xxd
xxd -r -c 8 $< > planck
chmod +x planck
c: others/planck.c
gcc -Wall -O2 $< -o planck -DCOMPILER="$(shell gcc --version | head -n1)"
python: others/planck.py
cp others/planck.py planck
chmod +x planck
.PHONY: clean test
clean:
rm -f planck
test: planck bootstrap.fs runtests.fs
./planck < bootstrap.fs runtests.fs