28 |
28 |
29 BUILD_ROOT = ../ |
29 BUILD_ROOT = ../ |
30 include ../config.mk |
30 include ../config.mk |
31 |
31 |
32 # list of source files |
32 # list of source files |
33 SRC = utils.c |
33 SRC = allocator.c |
|
34 SRC += array_list.c |
|
35 SRC += mempool.c |
|
36 SRC += buffer.c |
|
37 SRC += compare.c |
|
38 SRC += hash_key.c |
|
39 SRC += hash_map.c |
|
40 SRC += linked_list.c |
34 SRC += list.c |
41 SRC += list.c |
35 SRC += map.c |
42 SRC += map.c |
36 SRC += avl.c |
43 SRC += printf.c |
37 SRC += properties.c |
|
38 SRC += mempool.c |
|
39 SRC += string.c |
44 SRC += string.c |
40 SRC += test.c |
45 SRC += utils.c |
41 SRC += allocator.c |
46 SRC += tree.c |
42 SRC += logging.c |
47 SRC += iterator.c |
43 SRC += buffer.c |
|
44 SRC += stack.c |
|
45 SRC += ucx.c |
|
46 SRC += array.c |
|
47 |
48 |
48 OBJ = $(SRC:%.c=../build/ucx/%.$(OBJ_EXT)) |
49 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT)) |
49 |
50 |
50 UCX_LIB = ../build/lib/libucx.$(LIB_EXT) |
51 UCX_LIB = ../build/lib/libucx$(LIB_EXT) |
51 |
52 |
52 all: ../build/ucx $(UCX_LIB) |
53 all: ../build/ucx $(UCX_LIB) |
53 |
54 |
54 $(UCX_LIB): $(OBJ) |
55 $(UCX_LIB): $(OBJ) |
55 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ) |
56 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ) |
56 |
57 |
57 ../build/ucx: |
58 ../build/ucx: |
58 mkdir -p ../build/ucx |
59 mkdir -p ../build/ucx |
59 |
60 |
60 ../build/ucx/%.$(OBJ_EXT): %.c |
61 ../build/ucx/%$(OBJ_EXT): %.c |
61 $(CC) $(CFLAGS) -o $@ -c $< |
62 $(CC) $(CFLAGS) -o $@ -c $< |
62 |
63 |