2018-02-03 15:53:33 +01:00
|
|
|
CFLAGS = -Wall -O3
|
2018-02-06 16:36:34 +01:00
|
|
|
all: clean toolchain image repl rre js
|
2018-02-06 02:35:41 +01:00
|
|
|
|
2018-02-06 16:36:34 +01:00
|
|
|
rebuild: clean toolchain update image repl rre js glossary
|
2018-02-03 15:53:33 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f bin/unu
|
|
|
|
rm -f bin/rre
|
|
|
|
rm -f bin/embedimage
|
|
|
|
rm -f bin/repl
|
|
|
|
rm -f bin/extend
|
|
|
|
rm -f bin/muri
|
2018-02-06 16:36:34 +01:00
|
|
|
rm -f bin/injectimage-js
|
2018-02-03 15:53:33 +01:00
|
|
|
|
|
|
|
toolchain:
|
|
|
|
$(CC) $(CFLAGS) tools/embedimage.c -o bin/embedimage
|
2018-02-06 16:36:34 +01:00
|
|
|
$(CC) $(CFLAGS) tools/injectimage-js.c -o bin/injectimage-js
|
2018-02-03 15:53:33 +01:00
|
|
|
$(CC) $(CFLAGS) tools/extend.c -o bin/extend
|
|
|
|
$(CC) $(CFLAGS) tools/unu.c -o bin/unu
|
|
|
|
$(CC) $(CFLAGS) tools/muri.c -o bin/muri
|
|
|
|
|
|
|
|
update:
|
|
|
|
./bin/unu literate/Unu.md >tools/unu.c
|
|
|
|
./bin/unu literate/Muri.md >tools/muri.c
|
|
|
|
|
|
|
|
image:
|
|
|
|
./bin/muri literate/Rx.md
|
|
|
|
./bin/extend literate/RetroForth.md
|
|
|
|
./bin/embedimage > interfaces/image.c
|
|
|
|
|
|
|
|
rre:
|
|
|
|
cp ngaImage cleanImage
|
|
|
|
./bin/extend interfaces/rre.forth
|
|
|
|
./bin/embedimage >interfaces/rre_image_unix.c
|
|
|
|
mv cleanImage ngaImage
|
|
|
|
cp ngaImage cleanImage
|
|
|
|
./bin/extend interfaces/rre_windows.forth
|
|
|
|
./bin/embedimage >interfaces/rre_image_windows.c
|
|
|
|
mv cleanImage ngaImage
|
|
|
|
cd interfaces && $(CC) $(CFLAGS) -lm rre.c -o ../bin/rre
|
|
|
|
|
|
|
|
repl:
|
|
|
|
cd interfaces && $(CC) $(CFLAGS) repl.c -o ../bin/repl
|
|
|
|
|
2018-02-03 15:56:39 +01:00
|
|
|
ri:
|
|
|
|
cd interfaces && $(CC) $(CFLAGS) -lcurses ri.c -o ../bin/ri
|
|
|
|
|
2018-02-06 16:36:34 +01:00
|
|
|
js:
|
|
|
|
./bin/injectimage-js >bin/RETRO12.html
|
|
|
|
|
2018-02-03 15:53:33 +01:00
|
|
|
glossary:
|
|
|
|
LC_ALL=c sort -o sorted.tsv words.tsv
|
|
|
|
mv sorted.tsv words.tsv
|
|
|
|
./bin/rre glossary.forth export glossary >doc/Glossary.txt
|