Put user CFLAGS after the predefined flags

This allows the usage of the CFLAGS variable to override existing
parameters (e.g. optimizations) without editing config.mk.
This commit is contained in:
Nikos Tsipinakis 2018-03-09 19:43:07 +02:00
parent 063e29fd1b
commit 678ea70c88

View File

@ -14,8 +14,8 @@ PKG_CONFIG ?= pkg-config
# flags # flags
CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" CPPFLAGS += -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\"
CFLAGS += -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} CFLAGS := -g --std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${STATIC} ${CPPFLAGS} ${CFLAGS}
LDFLAGS += -lm LDFLAGS := -lm ${LDFLAGS}
CPPFLAGS_DEBUG := -DDEBUG_BUILD CPPFLAGS_DEBUG := -DDEBUG_BUILD
CFLAGS_DEBUG := -O0 CFLAGS_DEBUG := -O0