# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1742907883 -3600
# Node ID 11004f307eaed341a199aae61cb0058a3580d0f5
# Parent  9f562a7de4a265747fa0aa9b137c8139d9220206
add LIB_PREFIX to the build system

diff -r 9f562a7de4a2 -r 11004f307eae application/Makefile
--- a/application/Makefile	Tue Mar 25 13:31:30 2025 +0100
+++ b/application/Makefile	Tue Mar 25 14:04:43 2025 +0100
@@ -37,7 +37,7 @@
 
 all: ../build/bin/mk12
 
-../build/bin/mk12: $(OBJ) $(BUILD_ROOT)/build/lib/libuitk$(LIB_EXT)
+../build/bin/mk12: $(OBJ) $(BUILD_ROOT)/build/lib/$(LIB_PREFIX)uitk$(LIB_EXT)
 	$(CC) -o ../build/bin/mk12$(APP_EXT) $(OBJ) -L$(BUILD_ROOT)/build/lib -luitk -lucx $(LDFLAGS) $(TK_LDFLAGS)
 
 ../build/application/%$(OBJ_EXT): %.c
diff -r 9f562a7de4a2 -r 11004f307eae configure
--- a/configure	Tue Mar 25 13:31:30 2025 +0100
+++ b/configure	Tue Mar 25 14:04:43 2025 +0100
@@ -595,6 +595,7 @@
         cat >> "$TEMP_DIR/make.mk" << __EOF__
 OBJ_EXT = .o
 LIB_EXT = .a
+LIB_PREFIX = lib
 PACKAGE_SCRIPT = package_osx.sh
 __EOF__
         break
@@ -615,6 +616,7 @@
         cat >> "$TEMP_DIR/make.mk" << __EOF__
 OBJ_EXT = .o
 LIB_EXT = .a
+LIB_PREFIX = lib
 PACKAGE_SCRIPT = package_unix.sh
 __EOF__
         break
diff -r 9f562a7de4a2 -r 11004f307eae make/project.xml
--- a/make/project.xml	Tue Mar 25 13:31:30 2025 +0100
+++ b/make/project.xml	Tue Mar 25 14:04:43 2025 +0100
@@ -88,11 +88,13 @@
 	<dependency platform="macos">
 		<make>OBJ_EXT = .o</make>
 		<make>LIB_EXT = .a</make>
+		<make>LIB_PREFIX = lib</make>
 		<make>PACKAGE_SCRIPT = package_osx.sh</make>
 	</dependency>
 	<dependency platform="unix" not="macos">
 		<make>OBJ_EXT = .o</make>
 		<make>LIB_EXT = .a</make>
+		<make>LIB_PREFIX = lib</make>
 		<make>PACKAGE_SCRIPT = package_unix.sh</make>
 	</dependency>
 	
diff -r 9f562a7de4a2 -r 11004f307eae ucx/Makefile
--- a/ucx/Makefile	Tue Mar 25 13:31:30 2025 +0100
+++ b/ucx/Makefile	Tue Mar 25 14:04:43 2025 +0100
@@ -49,7 +49,7 @@
 
 OBJ   = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
 
-UCX_LIB = ../build/lib/libucx$(LIB_EXT)
+UCX_LIB = ../build/lib/$(LIB_PREFIX)ucx$(LIB_EXT)
 
 all: ../build/ucx $(UCX_LIB)