mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Minor fixes of minor tools
Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
parent
f6277da16e
commit
d3d2535f97
12 changed files with 67 additions and 27 deletions
12
byterun/.,
12
byterun/.,
|
|
@ -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
1
byterun/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/byterun.exe
|
||||
9
byterun/dune
Normal file
9
byterun/dune
Normal 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})))
|
||||
Loading…
Add table
Add a link
Reference in a new issue