mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
23 lines
649 B
Makefile
23 lines
649 B
Makefile
CC=gcc
|
|
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
|
|
$(CC) $(FLAGS) -c virt_stack.c
|
|
|
|
gc.o: gc.c gc.h
|
|
$(CC) -rdynamic $(FLAGS) -c gc.c
|
|
|
|
gc_runtime.o: gc_runtime.s
|
|
$(CC) $(FLAGS) -c gc_runtime.s
|
|
|
|
runtime.o: runtime.c runtime.h
|
|
$(CC) $(FLAGS) -c runtime.c
|
|
|
|
clean:
|
|
$(RM) *.a *.o *~
|