From dfba7a98086b70d417426a7ed8f6e5a69a6d551c Mon Sep 17 00:00:00 2001 From: Maciej Date: Mon, 10 Aug 2026 10:45:24 +0200 Subject: refactor: removed -lmoslib from compiler flags and just added it into last compiling+linking phase in tests. also changed -g to -ggdb --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cc6ffda..48ad409 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC=gcc CFLAGS=-std=c99 -Wall -Wextra -fPIC -I./include -O2 -s -CFLAGS_TEST=-std=c99 -Wall -Wextra -lmoslib -Og -g +CFLAGS_TEST=-std=c99 -Wall -Wextra -Og -ggdb AR=ar rcs both: shared static clean @@ -28,7 +28,7 @@ structures: test: $(CC) $(CFLAGS_TEST) -c tests/mem/alloc_tests.c $(CC) $(CFLAGS_TEST) -c tests/ds/array_tests.c - $(CC) $(CFLAGS_TEST) *.o tests/tests.c -o run_tests + $(CC) $(CFLAGS_TEST) -lmoslib *.o tests/tests.c -o run_tests ./run_tests 2>/dev/null rm run_tests *.o -- cgit v1.2.3