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/%.$(OBJ_EXT)) |
43 OBJ = $(SRC:%.c=../build/ucx/%.$(OBJ_EXT)) |
44 |
44 |
45 all: libucx |
45 all: libucx |
46 |
46 |
47 libucx: $(OBJ) |
47 libucx: $(OBJ) |
48 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx.$(LIB_EXT) $(OBJ) |
48 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx.$(LIB_EXT) $(OBJ) |
49 |
49 |
50 ../build/%.$(OBJ_EXT): %.c ../build |
50 ../build/ucx/%.$(OBJ_EXT): %.c ../build/ucx |
51 $(CC) $(CFLAGS) $(COFLAGS)$@ $< |
51 $(CC) $(CFLAGS) $(COFLAGS)$@ $< |
52 |
52 |
53 ../build: |
53 ../build/ucx: |
54 mkdir -p ../build |
54 mkdir -p ../build/ucx |