ucx/Makefile

changeset 39
3e55bed345f9
parent 33
0bbbb0341606
child 67
6b0c60659652
equal deleted inserted replaced
38:b855f76e965b 39:3e55bed345f9
38 SRC += test.c 38 SRC += test.c
39 SRC += allocator.c 39 SRC += allocator.c
40 SRC += logging.c 40 SRC += logging.c
41 SRC += buffer.c 41 SRC += buffer.c
42 42
43 OBJ = $(SRC:%.c=../build/ucx/%.$(OBJ_EXT)) 43 OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
44 44
45 all: libucx 45 all: ../build/ucx ../build/libucx.$(LIB_EXT)
46 46
47 libucx: $(OBJ) 47 ../build/libucx.$(LIB_EXT): $(OBJ)
48 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx.$(LIB_EXT) $(OBJ) 48 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx.$(LIB_EXT) $(OBJ)
49 49
50 ../build/ucx/%.$(OBJ_EXT): %.c ../build/ucx 50 ../build/ucx/%$(OBJ_EXT): %.c
51 $(CC) $(CFLAGS) $(COFLAGS)$@ $< 51 $(CC) $(CFLAGS) $(COFLAGS)$@ $<
52 52
53 ../build/ucx: 53 ../build/ucx:
54 mkdir -p ../build/ucx 54 $(MKDIR) $(MKDIRFLAGS) ../build/ucx

mercurial