summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorOskar <>2024-03-22 17:33:55 +0100
committerOskar <>2024-03-22 17:33:55 +0100
commiteb0556f79fec4b7faaa374c702aa78bceb089334 (patch)
treeee1fd3c27589d74df70e76eed7647fb5a5b81e81 /test/Makefile
parent6f162676864f6972c302ecab71e44149fa039551 (diff)
Fixed some more stuff
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/Makefile b/test/Makefile
index 3bdbc68..0e0e3c4 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,4 +1,7 @@
MAKEFLAGS += -s
+CFLAGS_ALLTESTS=-fsanitize=address -Wfatal-errors -Wall -Wextra -g
+CFLAGS_SMODE=-fsanitize=address -Wfatal-errors -Wall -Werror -Wextra -g
+CC=gcc
all: 7ed-TESTING
7ed-TESTING:
@@ -17,13 +20,13 @@ clean:
smode:
echo "CC input.c ---> smode"
- cd .. && gcc -Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address input.c i_validation.c -o test/smode
+ cd .. && $(CC) $(CFLAGS_SMODE) input.c i_validation.c -o test/smode
alltests:
cd .. && make tests
- gcc validate_check_p_m.c ../i_validation.c -o vcpm
+ $(CC) $(CFLAGS_ALLTESTS) validate_check_p_m.c ../i_validation.c -o vcpm
echo "CC ---> vcpm"
- gcc validate_check_imm.c ../i_validation.c -o vcimm
+ $(CC) $(CFLAGS_ALLTESTS) validate_check_imm.c ../i_validation.c -o vcimm
echo "CC ---> vcimm"
- gcc validate_plus_continue_tests.c ../i_validation.c -o vpct
- echo "CC ---> vpct" \ No newline at end of file
+ $(CC) $(CFLAGS_ALLTESTS) validate_plus_continue_tests.c ../i_validation.c -o vpct
+ echo "CC ---> vpct"