src/Makefile

changeset 850
b2bc48c2b251
parent 833
5c926801f052
child 854
fe0d69d72bcd
equal deleted inserted replaced
849:edb9f875b7f9 850:b2bc48c2b251
22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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 linked_list.c list.c map.c tree.c mempool.c printf.c string.c utils.c 27 iterator.c linked_list.c list.c map.c mempool.c printf.c string.c tree.c \
28 utils.c
28 29
29 OBJ_EXT=.o 30 OBJ_EXT=.o
30 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT)) 31 OBJ=$(SRC:%.c=$(build_dir)/%$(OBJ_EXT))
31 GCOV=$(SRC:%.c=%.c.gcov) 32 GCOV=$(SRC:%.c=%.c.gcov)
32 33
87 cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/string.h \ 88 cx/common.h cx/collection.h cx/allocator.h cx/iterator.h cx/string.h \
88 cx/hash_key.h cx/utils.h 89 cx/hash_key.h cx/utils.h
89 @echo "Compiling $<" 90 @echo "Compiling $<"
90 $(CC) -o $@ $(CFLAGS) -c $< 91 $(CC) -o $@ $(CFLAGS) -c $<
91 92
93 $(build_dir)/iterator$(OBJ_EXT): iterator.c cx/iterator.h cx/common.h
94 @echo "Compiling $<"
95 $(CC) -o $@ $(CFLAGS) -c $<
96
92 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \ 97 $(build_dir)/linked_list$(OBJ_EXT): linked_list.c cx/linked_list.h \
93 cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \ 98 cx/common.h cx/list.h cx/collection.h cx/allocator.h cx/iterator.h \
94 cx/utils.h cx/compare.h 99 cx/utils.h cx/compare.h
95 @echo "Compiling $<" 100 @echo "Compiling $<"
96 $(CC) -o $@ $(CFLAGS) -c $< 101 $(CC) -o $@ $(CFLAGS) -c $<

mercurial