From 834957c894e7663c4a15aabb31c9975c3393a886 Mon Sep 17 00:00:00 2001 From: xyJi Date: Tue, 4 Apr 2023 11:49:05 +0800 Subject: [PATCH] feat(bindings/c): fix c bindings makefile (#1849) Fixed the OBJDIR creation and library link flag Signed-off-by: Ji-Xinyou --- bindings/c/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bindings/c/Makefile b/bindings/c/Makefile index 6f58eed1d99a..5a1ee4d96252 100644 --- a/bindings/c/Makefile +++ b/bindings/c/Makefile @@ -18,13 +18,13 @@ RPATH=$(PWD)/../../target/debug CFLAGS = -I./include LDFLAGS = -L$(RPATH) -Wl,-rpath,$(RPATH) -LIBS = -lopendal -OBJ_DIR=build/ +LIBS = -lopendal_c +OBJ_DIR=build -all: $(OBJ_DIR) build test +all: objdir build test -$(OBJ_DIR): - mkdir -p $@ +objdir: + mkdir -p $(OBJ_DIR) build: cargo build