ucx/Makefile

changeset 26
dc36aa437249
parent 22
112b85020dc9
equal deleted inserted replaced
25:0bb91d1f9bba 26:dc36aa437249
36 SRC += compare.c 36 SRC += compare.c
37 SRC += hash_key.c 37 SRC += hash_key.c
38 SRC += hash_map.c 38 SRC += hash_map.c
39 SRC += iterator.c 39 SRC += iterator.c
40 SRC += linked_list.c 40 SRC += linked_list.c
41 SRC += kv_list.c
41 SRC += list.c 42 SRC += list.c
42 SRC += map.c 43 SRC += map.c
43 SRC += printf.c 44 SRC += printf.c
44 SRC += string.c 45 SRC += string.c
45 SRC += tree.c 46 SRC += tree.c
46 SRC += streams.c 47 SRC += streams.c
47 SRC += properties.c 48 SRC += properties.c
48 SRC += json.c 49 SRC += json.c
49 SRC += kv_list.c
50
51 50
52 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT)) 51 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
53 52
54 UCX_LIB = ../build/lib/libucx$(LIB_EXT) 53 UCX_LIB = ../build/lib/libucx.a
55 54
56 all: ../build/ucx $(UCX_LIB) 55 all: $(UCX_LIB) $(UCX_SHLIB)
57 56
58 $(UCX_LIB): $(OBJ) 57 $(UCX_LIB): $(OBJ)
59 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ) 58 $(AR) $(ARFLAGS) $@ $(OBJ)
60 59
61 ../build/ucx: 60 ../build/ucx:
62 mkdir -p ../build/ucx 61 mkdir -p ../build/ucx
63 62
64 ../build/ucx/%$(OBJ_EXT): %.c 63 ../build/ucx/%$(OBJ_EXT): %.c
65 $(CC) $(CFLAGS) -o $@ -c $< 64 $(CC) $(CFLAGS) $(SHLIB_CFLAGS) -o $@ -c $<
66 65

mercurial