Allow to specify C compiler when building runtime

Try something like `make -C runtime CC=clang-11 all`. It was tested only
on GNU/Linux

Signed-off-by: Kakadu <Kakadu@pm.me>
This commit is contained in:
Kakadu 2021-02-14 18:54:44 +03:00
parent aba621a73b
commit 882ca93f89

View file

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