From 8da36d4f82336087de47f5eadcf2373f4843e292 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 24 Jun 2019 20:30:41 +0800 Subject: [PATCH] update mqttd program, add relay and beep code --- 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