Commit a19683f8 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

{algo,tools}/Makefile: --coverage for LDFLAGS and CXXFLAGS

Those flags need to be exported.
parent 44eb4c64
......@@ -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
......
......@@ -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)
......
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