add FLAGS

This commit is contained in:
danyaberezun 2023-05-31 11:11:19 +02:00
parent ccd04c2159
commit e4fd3c487a

View file

@ -1,22 +1,23 @@
CC=gcc CC=gcc
FLAGS=-m32 -g2 -fstack-protector-all
all: gc_runtime.o gc.o runtime.o all: gc_runtime.o gc.o runtime.o
ar rc runtime.a gc_runtime.o runtime.o gc.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 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 -g2 -fstack-protector-all -DDEBUG_VERSION -m32 gc.c gc_runtime.s virt_stack.c runtime.c test_main.c test_util.s $(CC) -o test.o -DDEBUG_VERSION $(FLAGS) gc.c gc_runtime.s virt_stack.c runtime.c test_main.c test_util.s
virt_stack.o: virt_stack.h virt_stack.c virt_stack.o: virt_stack.h virt_stack.c
$(CC) -g2 -fstack-protector-all -m32 -c virt_stack.c $(CC) $(FLAGS) -c virt_stack.c
gc.o: gc.c gc.h gc.o: gc.c gc.h
$(CC) -g2 -rdynamic -fstack-protector-all -m32 -c gc.c $(CC) -rdynamic $(FLAGS) -c gc.c
gc_runtime.o: gc_runtime.s gc_runtime.o: gc_runtime.s
$(CC) -g2 -fstack-protector-all -m32 -c gc_runtime.s $(CC) $(FLAGS) -c gc_runtime.s
runtime.o: runtime.c runtime.h runtime.o: runtime.c runtime.h
$(CC) -g2 -fstack-protector-all -m32 -c runtime.c $(CC) $(FLAGS) -c runtime.c
clean: clean:
$(RM) *.a *.o *~ $(RM) *.a *.o *~