planckforth/Makefile

20 lines
360 B
Makefile
Raw Normal View History

2021-01-07 20:27:50 +01:00
# planckforth -
2021-01-02 05:29:46 +01:00
# Copyright (C) 2021 nineties
2020-12-28 14:11:20 +01:00
2021-01-11 07:37:09 +01:00
default: i386-linux-handwritten
2021-01-04 14:23:54 +01:00
2021-01-11 07:37:09 +01:00
i386-linux-handwritten: planck.xxd
2021-01-04 14:23:54 +01:00
xxd -r -c 8 $< > planck
chmod +x planck
2020-12-28 14:11:20 +01:00
2021-01-04 14:16:12 +01:00
c: others/planck.c
2021-01-11 06:03:25 +01:00
gcc -Wall -O2 $< -o planck -DCOMPILER="$(shell gcc --version | head -n1)"
2021-01-04 14:16:12 +01:00
python: others/planck.py
2021-01-05 06:13:05 +01:00
cp others/planck.py planck
2021-01-04 14:16:12 +01:00
chmod +x planck
2020-12-28 14:11:20 +01:00
.PHONY: clean
clean:
rm -f planck