23 |
23 |
24 include ../config.mk |
24 include ../config.mk |
25 |
25 |
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 iterator.c linked_list.c list.c map.c mempool.c printf.c string.c tree.c \ |
27 iterator.c linked_list.c list.c map.c mempool.c printf.c string.c tree.c \ |
28 utils.c properties.c |
28 utils.c properties.c json.c |
29 |
29 |
30 OBJ_EXT=.o |
30 OBJ_EXT=.o |
31 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) |
31 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) |
32 GCOV=$(SRC:%.c=%.c.gcov) |
32 GCOV=$(SRC:%.c=%.c.gcov) |
33 |
33 |
97 |
97 |
98 $(build_dir)/iterator$(OBJ_EXT): iterator.c cx/iterator.h cx/common.h |
98 $(build_dir)/iterator$(OBJ_EXT): iterator.c cx/iterator.h cx/common.h |
99 @echo "Compiling $<" |
99 @echo "Compiling $<" |
100 $(CC) -o $@ $(CFLAGS) -c $< |
100 $(CC) -o $@ $(CFLAGS) -c $< |
101 |
101 |
|
102 $(build_dir)/json$(OBJ_EXT): json.c cx/json.h cx/common.h cx/string.h \ |
|
103 cx/allocator.h cx/allocator.h |
|
104 @echo "Compiling $<" |
|
105 $(CC) -o $@ $(CFLAGS) -c $< |
|
106 |
102 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \ |
107 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \ |
103 cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \ |
108 cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \ |
104 cx/compare.h cx/utils.h cx/compare.h |
109 cx/compare.h cx/utils.h cx/compare.h |
105 @echo "Compiling $<" |
110 @echo "Compiling $<" |
106 $(CC) -o $@ $(CFLAGS) -c $< |
111 $(CC) -o $@ $(CFLAGS) -c $< |
124 cx/string.h cx/allocator.h |
129 cx/string.h cx/allocator.h |
125 @echo "Compiling $<" |
130 @echo "Compiling $<" |
126 $(CC) -o $@ $(CFLAGS) -c $< |
131 $(CC) -o $@ $(CFLAGS) -c $< |
127 |
132 |
128 $(build_dir)/properties$(OBJ_EXT): properties.c cx/properties.h \ |
133 $(build_dir)/properties$(OBJ_EXT): properties.c cx/properties.h \ |
129 cx/common.h cx/string.h cx/allocator.h cx/array_list.h cx/list.h \ |
134 cx/common.h cx/string.h cx/allocator.h cx/map.h cx/collection.h \ |
130 cx/collection.h cx/iterator.h cx/compare.h |
135 cx/iterator.h cx/compare.h cx/hash_key.h cx/array_list.h cx/list.h |
131 @echo "Compiling $<" |
136 @echo "Compiling $<" |
132 $(CC) -o $@ $(CFLAGS) -c $< |
137 $(CC) -o $@ $(CFLAGS) -c $< |
133 |
138 |
134 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ |
139 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ |
135 cx/allocator.h cx/utils.h |
140 cx/allocator.h cx/utils.h |