X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/40f3c997f92beb5cb6839cb700c12c433579ec6b..5778c026f64546aa00771be6feb1db3bf2da5b21:/Config.mak?ds=inline diff --git a/Config.mak b/Config.mak index 6d27087..c32caac 100644 --- a/Config.mak +++ b/Config.mak @@ -8,3 +8,28 @@ CC := gcc # Use pre-compiled headers GCH := 1 +# Warn about everything +override CPPFLAGS += -Wall +override LDFLAGS += -Wall + +# Be standard compliant +override CFLAGS += -std=c99 -pedantic +override CXXFLAGS += -std=c++98 -pedantic + + +# Flavors (variants) flags +########################## + +ifeq ($F,dbg) +override CPPFLAGS += -ggdb -DDEBUG +endif + +ifeq ($F,opt) +override CPPFLAGS += -O2 -DNDEBUG +endif + +ifeq ($F,cov) +override CPPFLAGS += -ggdb -pg --coverage +override LDFLAGS += -pg --coverage +endif +