Skip to content

Commit

Permalink
Build lib from in mosquitto_ctrl directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Dec 17, 2020
1 parent 2d9d1be commit 99e8c80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/mosquitto_ctrl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 99e8c80

Please sign in to comment.