From 99e8c8001d3c45a190d204e15254cd25c6c0d6b8 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 17 Dec 2020 15:04:35 +0000 Subject: [PATCH] Build lib from in mosquitto_ctrl directory. --- apps/mosquitto_ctrl/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/mosquitto_ctrl/Makefile b/apps/mosquitto_ctrl/Makefile index d2122abc..c351f9b9 100644 --- a/apps/mosquitto_ctrl/Makefile +++ b/apps/mosquitto_ctrl/Makefile @@ -38,7 +38,7 @@ endif all : ${TARGET} -mosquitto_ctrl : ${OBJS} +mosquitto_ctrl : ${OBJS} ${LIBMOSQ} ${CROSS_COMPILE}${CC} ${APP_LDFLAGS} $^ -o $@ $(PASSWD_LDADD) $(LOCAL_LDFLAGS) $(LIBMOSQ) -lcjson -ldl mosquitto_ctrl_example.so : ${EXAMPLE_OBJS} @@ -83,6 +83,12 @@ misc_mosq.o : ../../lib/misc_mosq.c ../../lib/misc_mosq.h password_mosq.o : ../../src/password_mosq.c ../../src/password_mosq.h ${CROSS_COMPILE}${CC} $(APP_CPPFLAGS) $(APP_CFLAGS) -c $< -o $@ +../../lib/libmosquitto.so.${SOVERSION} : + $(MAKE) -C ../../lib + +../../lib/libmosquitto.a : + $(MAKE) -C ../../lib libmosquitto.a + install : all ifeq ($(WITH_TLS),yes) ifeq ($(WITH_CJSON),yes)