--- a/src/tools/Makefile Wed Nov 02 19:19:01 2022 +0100 +++ b/src/tools/Makefile Sun Nov 06 15:53:32 2022 +0100 @@ -31,7 +31,7 @@ include $(BUILD_ROOT)/config.mk CFLAGS += -I../ucx/ -LDFLAGS += -L../../build/lib -lucx -lwscfg +LDFLAGS += -lucx -lwscfg # list of source files WSTOOL_SRC = wstool.c @@ -42,7 +42,7 @@ all: $(BUILD_ROOT)/build/tools $(BUILD_ROOT)/build/bin/wstool $(BUILD_ROOT)/build/bin/wstool: $(BUILD_ROOT)/build/tools $(WSTOOL_OBJ) - $(CC) -o $@ $(WSTOOL_OBJ) $(LDFLAGS) + $(CC) -o $@ $(WSTOOL_OBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(BUILD_ROOT)/build/tools/%$(OBJ_EXT): %.c $(CC) $(CFLAGS) -c -o $@ $<