X-Git-Url: https://git.llucax.com/software/makeit.git/blobdiff_plain/a4419536621943012477a48fc1fc5b1c730a2834..5778c026f64546aa00771be6feb1db3bf2da5b21:/Config.mak diff --git a/Config.mak b/Config.mak index e76a8a9..c32caac 100644 --- a/Config.mak +++ b/Config.mak @@ -5,6 +5,31 @@ F := dbg # C compiler CC := gcc -# Use precompiled headers +# 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 +