aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-03-06 23:13:00 +0000
committerbloodstalker <thabogre@gmail.com>2020-03-06 23:13:00 +0000
commitf38997774cb41fba555347d5d47a08976362c41b (patch)
treeab20080e06d4db784a6dc78f330784be5dc264fd /makefile
parentupdated the man and readme. (diff)
downloadcgrep-f38997774cb41fba555347d5d47a08976362c41b.tar.gz
cgrep-f38997774cb41fba555347d5d47a08976362c41b.zip
coverage
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/makefile b/makefile
index 95243a1..0edf949 100644
--- a/makefile
+++ b/makefile
@@ -104,7 +104,7 @@ depend:.depend
%.odbg:%.cpp
$(CXX) $(CXX_FLAGS) -g -c $< -o $@
-%.ocov:%.cpp
+%.ocov:%.cpp pch.hpp.gch
$(CXX) $(CXX_FLAGS) $(COV_CXX) -c $< -o $@
pch.hpp.gch: pch.hpp
@@ -132,12 +132,12 @@ $(TARGET)-cov: $(TARGET).ocov ./cfe-extra/cfe_extra.ocov
$(CXX) $^ $(LD_FLAGS) $(COV_LD) -o $@
cov: runcov
- @llvm-profdata merge -sparse ./default.profraw -o ./default.profdata
- @llvm-cov show $(TARGET)-cov -instr-profile=default.profdata -ignore-filename-regex=llvm clang
+ @llvm-profdata merge -sparse ./one.profraw ./two.profraw ./three.profraw ./four.profraw ./five.profraw ./six.profraw ./seven.profraw ./eight.profraw ./nine.profraw -o ./cgrep.profdata
+ @llvm-cov show $(TARGET)-cov -instr-profile=cgrep.profdata -ignore-filename-regex=llvm clang
covrep: runcov
- @llvm-profdata merge -sparse ./default.profraw -o ./default.profdata
- @llvm-cov report $(TARGET)-cov -instr-profile=default.profdata -ignore-filename-regex=llvm -ignore-filename-regex=clang -show-functions autosarpp.cpp
+ @llvm-profdata merge -sparse ./one.profraw ./two.profraw ./three.profraw ./four.profraw ./five.profraw ./six.profraw ./seven.profraw ./eight.profraw ./nine.profraw -o ./cgrep.profdata
+ @llvm-cov report $(TARGET)-cov -instr-profile=cgrep.profdata -ignore-filename-regex=llvm -ignore-filename-regex=clang -show-functions cgrep.cpp
ASM:$(ASM_LIST)
@@ -162,7 +162,7 @@ $(TARGET).a: $(TARGET).o ./cfe-extra/cfe_extra.o
ar rcs $(TARGET).a $(TARGET).o
runcov: $(TARGET)-cov
- $(TARGET)-cov ./cgrep.cpp --
+ - ./covrun.sh
test: $(TARGET)
$(TARGET) --A 1 --B 1 --regex write --memvar ./cgrep.cpp