aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMaciej <maciej.borowiec0@gmail.com>2026-08-10 10:45:24 +0200
committerMaciej <maciej.borowiec0@gmail.com>2026-08-10 10:48:12 +0200
commitdfba7a98086b70d417426a7ed8f6e5a69a6d551c (patch)
treee354659b7fccb4fb460610c9d500905e79e1d137 /Makefile
parent4b1b1e5802f1b5161c4df4aeab575108380bdf4d (diff)
refactor: removed -lmoslib from compiler flags and just added it into last compiling+linking phase in tests. also changed -g to -ggdb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files 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