Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
d54bed44
Commit
d54bed44
authored
Mar 21, 2017
by
yoogx
Browse files
* Add CFLAGS and LDFLAGS for gcov, gnatcove and valgrind
For issue
#19
parent
47106283
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/make/Makefile.common.in
View file @
d54bed44
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment