From 164590e50f7c6a26d7a92d5da6423ec8ce43f811 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 24 Jun 2019 20:48:06 +0800 Subject: [PATCH] Rename mqttd modules to hal and add makefile --- 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