src/server/Makefile

changeset 453
4586d534f9b5
parent 415
d938228c382e
child 484
c036a8b242a8
--- a/src/server/Makefile	Sun Dec 04 13:01:00 2022 +0100
+++ b/src/server/Makefile	Thu Feb 23 21:09:33 2023 +0100
@@ -70,11 +70,12 @@
 $(MK_OBJ_DIRS):
 	mkdir -p $@
 
-$(MAIN_TARGET): preparation $(MAINOBJS) $(DAEMON_STARTOBJ)
-	$(CC) -o $(MAIN_TARGET) $(MAINOBJS) $(DAEMON_STARTOBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS)
+$(MAIN_TARGET): preparation $(MAINOBJS) $(DAEMON_STARTOBJ) $(LIB_WSCFG)
+	$(CC) -o $(MAIN_TARGET) $(MAINOBJS) $(DAEMON_STARTOBJ) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(RPATH_WS_LIB_FLAG)
 
 $(LIB_WSCFG): $(CONFOBJS)
-	$(CC) $(SHLIB_LDFLAGS) -o $@ $(CONFOBJS)
+	$(CC) $(SHLIB_LDFLAGS) -o $@ $(CONFOBJS) -L$(BUILD_ROOT)/build/lib -lucx
+
 
 $(TEST_TARGET): $(TESTOBJS) $(PLUGINS)
 	$(CC) -o $(TEST_TARGET) $(TESTOBJS) -L$(BUILD_ROOT)/build/lib $(LDFLAGS) $(TEST_PLUGIN_LDFLAGS)

mercurial