| 26 SRC = allocator.c array_list.c buffer.c compare.c hash_key.c hash_map.c \ |
26 SRC = allocator.c array_list.c buffer.c compare.c hash_key.c hash_map.c \ |
| 27 linked_list.c list.c map.c mempool.c printf.c string.c utils.c |
27 linked_list.c list.c map.c mempool.c printf.c string.c utils.c |
| 28 |
28 |
| 29 OBJ_EXT=.o |
29 OBJ_EXT=.o |
| 30 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) |
30 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) |
| |
31 GCOV=$(SRC:%.c=%.c.gcov) |
| 31 |
32 |
| 32 static: $(build_dir)/libucx_static$(STLIB_EXT) |
33 static: $(build_dir)/libucx_static$(STLIB_EXT) |
| 33 |
34 |
| 34 shared: $(build_dir)/libucx$(SHLIB_EXT) |
35 shared: $(build_dir)/libucx$(SHLIB_EXT) |
| |
36 |
| |
37 check-coverage: $(GCOV) |
| |
38 mv *.gcov "$(build_dir)" |
| |
39 |
| |
40 %.c.gcov: %.c $(build_dir)/%.gcno |
| |
41 gcov -Ho "$(build_dir)" $< |
| |
42 |
| |
43 $(build_dir)/%.gcno: |
| |
44 test -f "$@" |
| 35 |
45 |
| 36 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) |
46 $(build_dir)/libucx_static$(STLIB_EXT): $(OBJ) |
| 37 $(AR) $(ARFLAGS) $@ $^ |
47 $(AR) $(ARFLAGS) $@ $^ |
| 38 |
48 |
| 39 $(build_dir)/libucx$(SHLIB_EXT): $(OBJ) |
49 $(build_dir)/libucx$(SHLIB_EXT): $(OBJ) |