unix/Makefile: coverage: Allow user to pass CFLAGS_EXTRA.

This build sets CFLAGS_EXTRA itself, but preserve user's value as passed
on make command line/etc.
This commit is contained in:
Paul Sokolovsky 2017-12-16 20:21:09 +02:00
parent e37ccfe59b
commit 7f9a62408d

View File

@ -243,7 +243,7 @@ freedos:
# build an interpreter for coverage testing and do the testing
coverage:
$(MAKE) \
COPT="-O0" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_coverage.h>" \
COPT="-O0" CFLAGS_EXTRA='$(CFLAGS_EXTRA) -DMP_CONFIGFILE="<mpconfigport_coverage.h>" \
-fprofile-arcs -ftest-coverage \
-Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wsign-compare \
-Wold-style-definition -Wpointer-arith -Wshadow -Wuninitialized -Wunused-parameter \