Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
a19683f8
Commit
a19683f8
authored
Jun 26, 2018
by
Mikaël Salson
Browse files
{algo,tools}/Makefile: --coverage for LDFLAGS and CXXFLAGS
Those flags need to be exported.
parent
44eb4c64
Changes
2
Hide whitespace changes
Inline
Side-by-side
algo/Makefile
View file @
a19683f8
...
...
@@ -9,6 +9,11 @@ endif
OPTIM
=
-O2
-DNDEBUG
$(COVERAGE_OPTION)
$(DEBUG)
override
CXXFLAGS
+=
-W
-Wall
-std
=
c++11
$(OPTIM)
override
LDFLAGS
+=
$(COVERAGE_OPTION)
export
CXXFLAGS
export
LDFLAGS
export
CXX
## inspired from http://stackoverflow.com/questions/399850/best-compiler-warning-level-for-c-c-compilers/401276
PARANOID
=
-Wall
-Weffc
++
-pedantic
\
...
...
@@ -113,7 +118,7 @@ debug:
$(VIDJIL)
:
$(BINDIR)%: $(MAIN).o $(LIBCORE)
$(MAKE)
-C
core
OPTIM
=
"
$(OPTIM)
"
$(MAKE)
-C
lib
OPTIM
=
"
$(OPTIM)
"
$(CXX)
-o
$@
$^
$(LDFLAGS)
$(LDLIBS)
$(CXXFLAGS)
$(CXX)
-o
$@
$^
$(LDFLAGS)
$(LDLIBS)
###
# Subdirectories
...
...
algo/tools/Makefile
View file @
a19683f8
...
...
@@ -14,7 +14,7 @@ all: $(EXEC)
$(EXEC)
:
%: %.o
$(MAKE)
-C
.. base
OPTIM
=
"
$(OPTIM)
"
$(CXX)
-I
..
-o
$@
$^
$(LIBCORE)
$(LDLIBS)
$(CXX)
-I
..
-o
$@
$^
$(LIBCORE)
$(LDLIBS)
$(LDFLAGS)
clean
:
rm
-f
$(EXEC)
...
...
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