48 OBJ = $(SRC:%.c=$(BUILD_ROOT)/build/ucx/%$(OBJ_EXT)) |
48 OBJ = $(SRC:%.c=$(BUILD_ROOT)/build/ucx/%$(OBJ_EXT)) |
49 |
49 |
50 all: $(BUILD_ROOT)/build/ucx $(BUILD_ROOT)/build/lib/libucx$(LIB_EXT) |
50 all: $(BUILD_ROOT)/build/ucx $(BUILD_ROOT)/build/lib/libucx$(LIB_EXT) |
51 |
51 |
52 $(BUILD_ROOT)/build/lib/libucx$(LIB_EXT): $(OBJ) |
52 $(BUILD_ROOT)/build/lib/libucx$(LIB_EXT): $(OBJ) |
53 $(CC) $(SHLIB_LDFLAGS) -o $@ $(OBJ) |
53 $(CC) $(SHLIB_LDFLAGS) -o $@ $(OBJ) $(UCX_SO_NAME) |
54 |
54 |
55 $(BUILD_ROOT)/build/ucx/%$(OBJ_EXT): %.c |
55 $(BUILD_ROOT)/build/ucx/%$(OBJ_EXT): %.c |
56 $(CC) $(CFLAGS) $(SHLIB_CFLAGS) -c -o $@ $< |
56 $(CC) $(CFLAGS) $(SHLIB_CFLAGS) -c -o $@ $< |
57 |
57 |
58 $(BUILD_ROOT)/build/ucx: |
58 $(BUILD_ROOT)/build/ucx: |