From 02294c1c430ab80bd4543af28f867c5c2927e5c1 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Tue, 25 Jun 2019 13:58:27 +0800 Subject: [PATCH] update mqttd main.c, add mosquitto publisher and subscriber --- mqttd/makefile | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mqttd/makefile b/mqttd/makefile index 9dbd850..8878b53 100644 --- a/mqttd/makefile +++ b/mqttd/makefile @@ -37,8 +37,10 @@ export CFLAGS export LDFLAGS -CFLAGS+=-Ihal -IcJSON -LDFLAGS+=-L hal -lhal -LcJSON -lcJSON +CFLAGS+=-Ihal -Ilylib +LDFLAGS+=-L hal -lhal -Llylib -llylib + +LDFLAGS+=-lmosquitto SRCFILES = $(wildcard *.c) IMAGE_NAME=$(shell basename ${PWD}) @@ -52,7 +54,7 @@ modules: make -C hal - make -C cJSON + make -C lylib cd ${MQTT_LIBPATH} && bash build.sh binary: ${SRCFILES} @@ -68,7 +70,7 @@ clean: @make clean -C hal - @make clean -C cJSON + @make clean -C lylib @rm -f version.h @rm -f *.o $(IMAGE_NAME) @rm -rf *.gdb *.a *.so *.elf* -- Gitblit v1.9.1