From ed778b78c3ee7cb25aecb0d70efd66239662c44c Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 25 Mar 2019 18:19:26 +0800 Subject: [PATCH] update mqttd program, add mosquitto compile --- mqttd/makefile | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/mqttd/makefile b/mqttd/makefile index 684dac6..0cf60b5 100644 --- a/mqttd/makefile +++ b/mqttd/makefile @@ -18,6 +18,8 @@ CFLAGS+=-I${PWD} #CFLAGS+=-Wall -Werror +MQTT_LIBPATH=mosquitto + LDFLAGS+=-lwiringPi LDFLAGS+=-lpthread @@ -38,7 +40,7 @@ SRCFILES = $(wildcard *.c) IMAGE_NAME=$(shell basename ${PWD}) -all: entry binary +all: entry MQTT binary entry: @echo " "; @echo " ========================================================="; @@ -49,6 +51,9 @@ $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} @echo " Compile over" +MQTT: + cd ${MQTT_LIBPATH} && bash build.sh + tag: @ctags --c-kinds=+defglmnstuvx --langmap=c:.c.h.ho.hem.het.hec.hev.him.hit.hic.hiv -R . @cscope -Rbq -- Gitblit v1.9.1