mirror of
https://github.com/nineties/planckforth
synced 2024-12-25 21:58:22 +01:00
Add build target c and python
This commit is contained in:
parent
1cd2f5c8ac
commit
a70f01fda6
3 changed files with 11 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
# planck -
|
||||
# Copyright (C) 2021 nineties
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue