From 8a0e43e2ba062b35f20ddcd83a7811a9e1a71786 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 31 Jul 2019 17:06:01 +0800 Subject: [PATCH] update mqttd for auto fill-in light and test ok --- mqttd/makefile | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mqttd/makefile b/mqttd/makefile index e29019b..9bdc1c6 100644 --- a/mqttd/makefile +++ b/mqttd/makefile @@ -39,9 +39,9 @@ CFLAGS+=-Ihal -Ietc -Ilylib -LDFLAGS+=-L hal -lhal -Letc -letc -Llylib -llylib +LIBS+=-L hal -lhal -Letc -letc -Llylib -llylib -LDFLAGS+=-lmosquitto -lpthread -lm +LIBS+=-lmosquitto -lpthread -lm SRCFILES = $(wildcard *.c) IMAGE_NAME=$(shell basename ${PWD}) @@ -60,7 +60,7 @@ cd ${MQTT_LIBPATH} && bash build.sh binary: ${SRCFILES} - $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} + $(CC) $(CFLAGS) -o ${IMAGE_NAME} $^ ${LDFLAGS} ${LIBS} @echo " Compile over" tag: -- Gitblit v1.9.1