ucx/Makefile

changeset 747
efbd59642577
parent 742
7e67689241fd
child 750
4d7a2238c5ac
equal deleted inserted replaced
746:a569148841ff 747:efbd59642577
1 # 1 #
2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 # 3 #
4 # Copyright 2016 Olaf Wintermann. All rights reserved. 4 # Copyright 2013 Olaf Wintermann. All rights reserved.
5 # 5 #
6 # Redistribution and use in source and binary forms, with or without 6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are met: 7 # modification, are permitted provided that the following conditions are met:
8 # 8 #
9 # 1. Redistributions of source code must retain the above copyright 9 # 1. Redistributions of source code must retain the above copyright
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 BUILD_ROOT = .. 29 BUILD_ROOT = ../
30
31 include ../config.mk 30 include ../config.mk
32 31
33 # list of source files 32 # list of source files
34 SRC = utils.c 33 SRC = allocator.c
34 SRC += array_list.c
35 SRC += basic_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
35 SRC += list.c 41 SRC += list.c
36 SRC += map.c 42 SRC += printf.c
37 SRC += avl.c
38 SRC += properties.c
39 SRC += mempool.c
40 SRC += string.c 43 SRC += string.c
41 SRC += test.c 44 SRC += utils.c
42 SRC += allocator.c
43 SRC += logging.c
44 SRC += buffer.c
45 SRC += stack.c
46 SRC += ucx.c
47 45
48 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT)) 46 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
49 47
50 all: ../build/ucx ../build/libucx$(LIB_EXT) 48 UCX_LIB = ../build/lib/libucx$(LIB_EXT)
51 49
52 ../build/libucx$(LIB_EXT): $(OBJ) 50 all: ../build/ucx $(UCX_LIB)
53 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx$(LIB_EXT) $(OBJ) 51
52 $(UCX_LIB): $(OBJ)
53 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ)
54
55 ../build/ucx:
56 mkdir -p ../build/ucx
54 57
55 ../build/ucx/%$(OBJ_EXT): %.c 58 ../build/ucx/%$(OBJ_EXT): %.c
56 $(CC) $(CFLAGS) -c -o $@ $< 59 $(CC) $(CFLAGS) -o $@ -c $<
57 60
58 ../build/ucx:
59 $(MKDIR) $(MKDIRFLAGS) ../build/ucx

mercurial