From 6cca39ecac406981c1aaaeae1355c68a57237df7 Mon Sep 17 00:00:00 2001 From: Albert Date: Wed, 12 Mar 2025 12:42:02 -0400 Subject: [PATCH] Rename examples lib name (Linux and macOS) --- GNUmakefile | 2 +- README.md | 8 ++++---- examples/C++/call_cpp_from_js/GNUmakefile | 8 ++++---- examples/C++/call_js_from_cpp/GNUmakefile | 8 ++++---- examples/C++/minimal/GNUmakefile | 8 ++++---- examples/C++/serve_a_folder/GNUmakefile | 8 ++++---- examples/C/call_c_from_js/GNUmakefile | 8 ++++---- examples/C/call_js_from_c/GNUmakefile | 8 ++++---- examples/C/chatgpt_api/GNUmakefile | 8 ++++---- examples/C/custom_web_server/GNUmakefile | 8 ++++---- examples/C/minimal/GNUmakefile | 8 ++++---- examples/C/public_network_access/GNUmakefile | 8 ++++---- examples/C/react/GNUmakefile | 8 ++++---- examples/C/serve_a_folder/GNUmakefile | 8 ++++---- examples/C/text-editor/GNUmakefile | 8 ++++---- examples/C/virtual_file_system/GNUmakefile | 8 ++++---- examples/C/web_app_multi_client/GNUmakefile | 8 ++++---- tests/GNUmakefile | 8 ++++---- 18 files changed, 69 insertions(+), 69 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 36b4a9cf..40064e64 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -68,7 +68,7 @@ else ifeq ($(DETECTED_OS),Darwin) # MacOS PLATFORM := macos CC = clang - LIB_DYN_OUT := $(WEBUI_OUT_LIB_NAME).dylib + LIB_DYN_OUT := lib$(WEBUI_OUT_LIB_NAME).dylib WEBKIT_OBJ := wkwebview.o WKWEBKIT_BUILD_FLAGS := -o wkwebview.o -c "$(MAKEFILE_DIR)/src/webview/wkwebview.m" WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit diff --git a/README.md b/README.md index 525dd24d..b40a9353 100644 --- a/README.md +++ b/README.md @@ -226,9 +226,9 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c | Compiler | Type | Command | |----------|--------|---------| | GCC | Static | `gcc -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` | - | GCC | Dynamic | `gcc my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.so" -lpthread -lm -ldl -o my_application` | + | GCC | Dynamic | `gcc my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -ldl -o my_application` | | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -ldl -o my_application` | - | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.so" -lpthread -lm -ldl -o my_application` | + | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -ldl -o my_application` | ### macOS @@ -236,7 +236,7 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c | Compiler | Type | Command | |----------|--------|---------| | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | -| Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2.dylib" -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | +| Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2 -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
macOS With SSL/TLS (Optional) @@ -244,7 +244,7 @@ Think of WebUI like a WebView controller, but instead of embedding the WebView c | Compiler | Type | Command | |----------|--------|---------| | Clang | Static | `clang -Os my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure-static -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | - | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" "./webui-2-secure.dylib" -lpthread -lm -framework Cocoa -framework WebKit -o my_application` | + | Clang | Dynamic | `clang my_application.c -I"_PATH_TO_WEBUI_INCLUDE_" -L"_PATH_TO_WEBUI_LIB_" -lwebui-2-secure -lpthread -lm -framework Cocoa -framework WebKit -o my_application` |
## Wrappers diff --git a/examples/C++/call_cpp_from_js/GNUmakefile b/examples/C++/call_cpp_from_js/GNUmakefile index 9d9a321e..98fb23c4 100644 --- a/examples/C++/call_cpp_from_js/GNUmakefile +++ b/examples/C++/call_cpp_from_js/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C++/call_js_from_cpp/GNUmakefile b/examples/C++/call_js_from_cpp/GNUmakefile index 9d9a321e..98fb23c4 100644 --- a/examples/C++/call_js_from_cpp/GNUmakefile +++ b/examples/C++/call_js_from_cpp/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C++/minimal/GNUmakefile b/examples/C++/minimal/GNUmakefile index 9d9a321e..98fb23c4 100644 --- a/examples/C++/minimal/GNUmakefile +++ b/examples/C++/minimal/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C++/serve_a_folder/GNUmakefile b/examples/C++/serve_a_folder/GNUmakefile index 9d9a321e..98fb23c4 100644 --- a/examples/C++/serve_a_folder/GNUmakefile +++ b/examples/C++/serve_a_folder/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/call_c_from_js/GNUmakefile b/examples/C/call_c_from_js/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/call_c_from_js/GNUmakefile +++ b/examples/C/call_c_from_js/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/call_js_from_c/GNUmakefile b/examples/C/call_js_from_c/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/call_js_from_c/GNUmakefile +++ b/examples/C/call_js_from_c/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/chatgpt_api/GNUmakefile b/examples/C/chatgpt_api/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/chatgpt_api/GNUmakefile +++ b/examples/C/chatgpt_api/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/custom_web_server/GNUmakefile b/examples/C/custom_web_server/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/custom_web_server/GNUmakefile +++ b/examples/C/custom_web_server/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/minimal/GNUmakefile b/examples/C/minimal/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/minimal/GNUmakefile +++ b/examples/C/minimal/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/public_network_access/GNUmakefile b/examples/C/public_network_access/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/public_network_access/GNUmakefile +++ b/examples/C/public_network_access/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/react/GNUmakefile b/examples/C/react/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/react/GNUmakefile +++ b/examples/C/react/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/serve_a_folder/GNUmakefile b/examples/C/serve_a_folder/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/serve_a_folder/GNUmakefile +++ b/examples/C/serve_a_folder/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/text-editor/GNUmakefile b/examples/C/text-editor/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/text-editor/GNUmakefile +++ b/examples/C/text-editor/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/virtual_file_system/GNUmakefile b/examples/C/virtual_file_system/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/virtual_file_system/GNUmakefile +++ b/examples/C/virtual_file_system/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/examples/C/web_app_multi_client/GNUmakefile b/examples/C/web_app_multi_client/GNUmakefile index 49508e25..95e807b3 100644 --- a/examples/C/web_app_multi_client/GNUmakefile +++ b/examples/C/web_app_multi_client/GNUmakefile @@ -48,15 +48,15 @@ else # MacOS PLATFORM := macos CC = clang - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm- diff --git a/tests/GNUmakefile b/tests/GNUmakefile index e6c3e4f8..94f09d0c 100644 --- a/tests/GNUmakefile +++ b/tests/GNUmakefile @@ -58,15 +58,15 @@ else ifeq ($(shell uname),Darwin) # MacOS PLATFORM := macos - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).dylib" "$(WEBUI_LIB_NAME).dylib" - DYN_BUILD_FLAGS += "./$(WEBUI_LIB_NAME).dylib" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).dylib" "lib$(WEBUI_LIB_NAME).dylib" + DYN_BUILD_FLAGS += -l$(WEBUI_LIB_NAME).dylib WKWEBKIT_LINK_FLAGS := -framework Cocoa -framework WebKit else # Linux PLATFORM := linux - COPY_LIB_CMD := @cp "$(LIB_DIR)/$(WEBUI_LIB_NAME).so" "$(WEBUI_LIB_NAME).so" + COPY_LIB_CMD := @cp "$(LIB_DIR)/lib$(WEBUI_LIB_NAME).so" "lib$(WEBUI_LIB_NAME).so" STATIC_BUILD_FLAGS += -ldl - DYN_BUILD_FLAGS += -ldl "./$(WEBUI_LIB_NAME).so" + DYN_BUILD_FLAGS += -ldl -l$(WEBUI_LIB_NAME) STRIP_OPT := --strip-all ifeq ($(CC),clang) LLVM_OPT := llvm-