Commit d54bed44 authored by yoogx's avatar yoogx

* Add CFLAGS and LDFLAGS for gcov, gnatcove and valgrind

        For issue #19
parent 47106283
......@@ -197,6 +197,27 @@ hyperperiod-cheddar:
python get_cheddar_schedule.py
python parser_cheddar_et.py
################################################################################
# Code coverage + runtime-analysis
# gcov
ifeq ($(COVERAGE), gcov)
CFLAGS += -fprofile-arcs -ftest-coverage -lgcov -coverage
LDFLAGS += -fprofile-arcs -ftest-coverage -lgcov -coverage
endif
# gnatcoverage
ifeq ($(COVERAGE), gnatcov)
CFLAGS += -g -fpreserve-control-flow -fdump-scos -ffunction-sections -fdata-sections -Wl,--gc-sections
LDFLAGS += -g -fpreserve-control-flow -fdump-scos -ffunction-sections -fdata-sections -Wl,--gc-sections
endif
# valgrind
ifeq ($(VALGRIND_PROF), true)
CFLAGS += -g
LDFLAGS += -g
endif
################################################################################
# General compilation rules
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment