src/Makefile

changeset 923
45da884269c8
parent 922
eabfbe9e2952
child 924
3c90dfc35f06
equal deleted inserted replaced
922:eabfbe9e2952 923:45da884269c8
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 28 utils.c properties.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
123 $(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h \ 123 $(build_dir)/printf$(OBJ_EXT): printf.c cx/printf.h cx/common.h \
124 cx/string.h cx/allocator.h 124 cx/string.h cx/allocator.h
125 @echo "Compiling $<" 125 @echo "Compiling $<"
126 $(CC) -o $@ $(CFLAGS) -c $< 126 $(CC) -o $@ $(CFLAGS) -c $<
127 127
128 $(build_dir)/properties$(OBJ_EXT): properties.c cx/properties.h
129 @echo "Compiling $<"
130 $(CC) -o $@ $(CFLAGS) -c $<
131
128 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \ 132 $(build_dir)/string$(OBJ_EXT): string.c cx/string.h cx/common.h \
129 cx/allocator.h cx/utils.h 133 cx/allocator.h cx/utils.h
130 @echo "Compiling $<" 134 @echo "Compiling $<"
131 $(CC) -o $@ $(CFLAGS) -c $< 135 $(CC) -o $@ $(CFLAGS) -c $<
132 136

mercurial