1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2024-11-08 22:31:31 +01:00

chore: improve Makefile to use -fsanitize=address -fsanitize=undefined gcc flags

Fixes #5
This commit is contained in:
Théo LUDWIG 2023-08-04 19:58:41 +02:00
parent 145dfcf546
commit 316dfa10e7
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -1,6 +1,6 @@
LIBRARY_NAME = libcproject LIBRARY_NAME = libcproject
CC = gcc CC = gcc
CC_FLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3 -I./ CC_FLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3 -fsanitize=address -fsanitize=undefined -I./
LIB = ./build/${LIBRARY_NAME}.a LIB = ./build/${LIBRARY_NAME}.a
LIB_CC_FLAGS = -L. -l:${LIB} LIB_CC_FLAGS = -L. -l:${LIB}
LIB_SOURCES = $(wildcard lib/*.c) LIB_SOURCES = $(wildcard lib/*.c)