Forráskód Böngészése

[Makefile] Adding CFLAGS

Vinicius Teshima 1 éve
szülő
commit
c425f45ffd
1 módosított fájl, 6 hozzáadás és 1 törlés
  1. 6 1
      Makefile

+ 6 - 1
Makefile

@@ -1,7 +1,12 @@
 SRCS=$(shell find ./src -name '*.c' -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}
 	gcc -ggdb ${CFLAGS} $^ -o $@