ucx/Makefile

changeset 35
3e8b5c9b4033
parent 0
1f419bd32da1
child 156
62f1a55535e7
equal deleted inserted replaced
34:0ec8a5f17782 35:3e8b5c9b4033
39 SRC += test.c 39 SRC += test.c
40 SRC += allocator.c 40 SRC += allocator.c
41 SRC += logging.c 41 SRC += logging.c
42 SRC += buffer.c 42 SRC += buffer.c
43 43
44 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT)) 44 OBJ = $(SRC:%.c=../build/ucx/%.$(OBJ_EXT))
45 45
46 UCX_LIB = ../build/lib/libucx.$(LIB_EXT) 46 UCX_LIB = ../build/lib/libucx.$(LIB_EXT)
47 47
48 all: ../build/ucx $(UCX_LIB) 48 all: ../build/ucx $(UCX_LIB)
49 49
51 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ) 51 $(AR) $(ARFLAGS) $(UCX_LIB) $(OBJ)
52 52
53 ../build/ucx: 53 ../build/ucx:
54 mkdir -p ../build/ucx 54 mkdir -p ../build/ucx
55 55
56 ../build/ucx/%$(OBJ_EXT): %.c 56 ../build/ucx/%.$(OBJ_EXT): %.c
57 $(CC) $(CFLAGS) -o $@ -c $< 57 $(CC) $(CFLAGS) -o $@ -c $<
58 58

mercurial