32 |
32 |
33 static: $(build_dir)/libucx_static$(STLIB_EXT) |
33 static: $(build_dir)/libucx_static$(STLIB_EXT) |
34 |
34 |
35 shared: $(build_dir)/libucx$(SHLIB_EXT) |
35 shared: $(build_dir)/libucx$(SHLIB_EXT) |
36 |
36 |
37 check-coverage: $(SRC:%.c=$(build_dir)/%.gcda) |
37 check-coverage: $(SRC:%.c=$(build_dir)/%.gcda) $(build_dir)/coverage |
38 gcovr --html-details $(build_dir)/coverage.html \ |
38 gcovr --html-details $(build_dir)/coverage/ucx.html \ |
39 --object-directory $(build_dir) \ |
39 --object-directory $(build_dir) \ |
40 --root $(root_dir)/src \ |
40 --root $(root_dir)/src \ |
41 --exclude-directories $(build_dir)/tests \ |
41 --exclude-directories $(build_dir)/tests \ |
42 $(build_dir) |
42 $(build_dir) |
|
43 |
|
44 $(build_dir)/coverage: |
|
45 $(MKDIR) $@ |
43 |
46 |
44 $(build_dir)/%.gcda: |
47 $(build_dir)/%.gcda: |
45 test -f "$@" |
48 test -f "$@" |
46 |
49 |
47 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) |
50 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) |