Add build target c and python

This commit is contained in:
Koichi Nakamura 2021-01-04 22:16:12 +09:00
parent 1cd2f5c8ac
commit a70f01fda6
3 changed files with 11 additions and 0 deletions

View file

@ -5,6 +5,13 @@ planck: planck.xxd
xxd -r -c 8 $< > $@
chmod +x $@
c: others/planck.c
gcc -Wall -O2 $< -o planck
python: others/planck.py
cp others/planck.py planck
chmod +x planck
.PHONY: clean
clean:
rm -f planck

View file

@ -15,6 +15,9 @@ xxd -r -c 8 planck.xxd > planck
chmod +x planck
```
There are implementations in C and Python 3 as a reference in `others`.
Try `make c` or `make python`
## Hello World
The hello world program at the beginning looks like this.

View file

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# planck -
# Copyright (C) 2021 nineties
#