ucx/Makefile

changeset 33
0bbbb0341606
parent 5
88625853ae74
child 39
3e55bed345f9
equal deleted inserted replaced
32:c9d37bb97ea8 33:0bbbb0341606
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

mercurial