aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov@twistea.su>2025-02-02 20:28:12 +0300
committerjustanothercatgirl <sotov@twistea.su>2025-02-02 20:33:05 +0300
commite14c6bc3801be29eb5a64c813754b170a67d4956 (patch)
treed50139560fa85aa431ac934c03f19905327141e7 /Makefile
parent8989b7dc005af7960aa66fd99b197a3b0b7a4fbc (diff)
Added log header
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 21f4a17..c24e590 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
CC := gcc
-CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token
+CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token -Wno-stringop-overread -Iinclude
-tests: container types
+tests: container types log
container: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c \
tests/binary_search.c tests/linked_list.c tests/hashset.c \
@@ -30,8 +30,14 @@ container: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c \
rm $@
-types:
- $(CC) -o $@ tests/types.c
+types: tests/types.c
+ $(CC) -o $@ tests/types.c $(CFLAGS)
./$@
rm $@
+
+log: tests/log.c
+ $(CC) -o $@ tests/log.c $(CFLAGS)
+ - ./$@
+ rm $@
+