|
@@ -1,7 +1,12 @@
|
|
|
SRCS=$(shell find ./src -name '*.c' -type f)
|
|
SRCS=$(shell find ./src -name '*.c' -type f)
|
|
|
HDRS=$(shell find ./src -name '*.h' -type f)
|
|
HDRS=$(shell find ./src -name '*.h' -type f)
|
|
|
|
|
|
|
|
-CFLAGS=-ansi -Wno-builtin-declaration-mismatch -Wall -Wextra -pedantic
|
|
|
|
|
|
|
+CFLAGS=-ansi -m64 -Og -fsanitize=address -ggdb \
|
|
|
|
|
+-pedantic -Wall -Wextra -Wshadow \
|
|
|
|
|
+-Wcast-align -Wunused -Wconversion -Wmisleading-indentation \
|
|
|
|
|
+-Wdouble-promotion -Wformat=2 -Wbad-function-cast \
|
|
|
|
|
+-Wmissing-declarations \
|
|
|
|
|
+-Wmissing-prototypes -Wnested-externs -Werror
|
|
|
|
|
|
|
|
cint: ${SRCS} ${HDRS}
|
|
cint: ${SRCS} ${HDRS}
|
|
|
gcc -ggdb ${CFLAGS} $^ -o $@
|
|
gcc -ggdb ${CFLAGS} $^ -o $@
|