aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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 $@
+