lama_byterun/runtime/Makefile

24 lines
649 B
Makefile
Raw Normal View History

CC=gcc
2023-09-04 21:44:26 +02:00
FLAGS=-no-pie -m32 -g2 -fstack-protector-all -DLAMA_ENV
all: gc_runtime.o gc.o runtime.o
ar rc runtime.a gc_runtime.o runtime.o gc.o
test.o: gc.c gc.h gc_runtime.s runtime.c runtime.h runtime_common.h virt_stack.c virt_stack.h test_main.c test_util.s
$(CC) -o test.o -DDEBUG_VERSION $(FLAGS) gc.c gc_runtime.s virt_stack.c ext_arr.c runtime.c test_main.c test_util.s
virt_stack.o: virt_stack.h virt_stack.c
2023-05-31 11:11:19 +02:00
$(CC) $(FLAGS) -c virt_stack.c
gc.o: gc.c gc.h
2023-05-31 11:11:19 +02:00
$(CC) -rdynamic $(FLAGS) -c gc.c
2018-11-21 14:23:35 +03:00
gc_runtime.o: gc_runtime.s
2023-05-31 11:11:19 +02:00
$(CC) $(FLAGS) -c gc_runtime.s
2018-11-21 14:23:35 +03:00
2021-09-28 03:02:05 +03:00
runtime.o: runtime.c runtime.h
2023-05-31 11:11:19 +02:00
$(CC) $(FLAGS) -c runtime.c
2018-03-04 23:13:08 +03:00
clean:
$(RM) *.a *.o *~