| 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 json.c |
28 streams.c szmul.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 |
| 135 cx/common.h cx/string.h cx/allocator.h cx/map.h cx/collection.h \ |
135 cx/common.h cx/string.h cx/allocator.h cx/map.h cx/collection.h \ |
| 136 cx/iterator.h cx/compare.h cx/hash_key.h cx/array_list.h cx/list.h |
136 cx/iterator.h cx/compare.h cx/hash_key.h cx/array_list.h cx/list.h |
| 137 @echo "Compiling $<" |
137 @echo "Compiling $<" |
| 138 $(CC) -o $@ $(CFLAGS) -c $< |
138 $(CC) -o $@ $(CFLAGS) -c $< |
| 139 |
139 |
| |
140 $(build_dir)/streams$(OBJ_EXT): streams.c cx/streams.h cx/common.h |
| |
141 @echo "Compiling $<" |
| |
142 $(CC) -o $@ $(CFLAGS) -c $< |
| |
143 |
| 140 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ |
144 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ |
| 141 cx/allocator.h |
145 cx/allocator.h |
| 142 @echo "Compiling $<" |
146 @echo "Compiling $<" |
| 143 $(CC) -o $@ $(CFLAGS) -c $< |
147 $(CC) -o $@ $(CFLAGS) -c $< |
| 144 |
148 |
| 145 $(build_dir)/szmul$(OBJ_EXT): szmul.c |
149 $(build_dir)/szmul$(OBJ_EXT): szmul.c cx/common.h |
| 146 @echo "Compiling $<" |
150 @echo "Compiling $<" |
| 147 $(CC) -o $@ $(CFLAGS) -c $< |
151 $(CC) -o $@ $(CFLAGS) -c $< |
| 148 |
152 |
| 149 $(build_dir)/tree$(OBJ_EXT): tree.c cx/tree.h cx/common.h cx/collection.h \ |
153 $(build_dir)/tree$(OBJ_EXT): tree.c cx/tree.h cx/common.h cx/collection.h \ |
| 150 cx/allocator.h cx/iterator.h cx/compare.h cx/array_list.h cx/list.h |
154 cx/allocator.h cx/iterator.h cx/compare.h cx/array_list.h cx/list.h |
| 151 @echo "Compiling $<" |
155 @echo "Compiling $<" |
| 152 $(CC) -o $@ $(CFLAGS) -c $< |
156 $(CC) -o $@ $(CFLAGS) -c $< |
| 153 |
157 |
| 154 $(build_dir)/utils$(OBJ_EXT): utils.c cx/utils.h cx/common.h |
|
| 155 @echo "Compiling $<" |
|
| 156 $(CC) -o $@ $(CFLAGS) -c $< |
|
| 157 |
|