Minor fixes of minor tools

Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
Kakadu 2024-09-05 17:32:45 +03:00
parent f6277da16e
commit d3d2535f97
12 changed files with 67 additions and 27 deletions

View file

@ -1,12 +0,0 @@
all: gc_runtime.o runtime.o
ar rc runtime.a gc_runtime.o runtime.o
gc_runtime.o: gc_runtime.s
$(CC) -g -fstack-protector-all -m32 -c gc_runtime.s
runtime.o: runtime.c
$(CC) -g -fstack-protector-all -m32 -c runtime.c
clean:
$(RM) *.a *.o *~

1
byterun/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/byterun.exe

9
byterun/dune Normal file
View file

@ -0,0 +1,9 @@
(rule
(target byterun.exe)
(deps
(:main byterun.c)
(:runtime ../runtime/runtime.a))
(mode
(promote (until-clean)))
(action
(run gcc -g %{main} %{runtime} -o %{target})))