From 6a924a29cefbea27a101790343137db819b361be Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 26 Jun 2019 00:08:35 +0800
Subject: [PATCH] update mqttd to add configure file parser support

---
 mqttd/makefile |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/mqttd/makefile b/mqttd/makefile
index 8878b53..932c4c9 100644
--- a/mqttd/makefile
+++ b/mqttd/makefile
@@ -37,10 +37,11 @@
 export CFLAGS
 export LDFLAGS
 
-CFLAGS+=-Ihal -Ilylib
-LDFLAGS+=-L hal -lhal -Llylib -llylib
 
-LDFLAGS+=-lmosquitto
+CFLAGS+=-Ihal -Ietc -Ilylib 
+LDFLAGS+=-L hal -lhal -Letc -letc -Llylib -llylib
+
+LDFLAGS+=-lmosquitto -lpthread -lm
 
 SRCFILES = $(wildcard *.c)
 IMAGE_NAME=$(shell basename ${PWD})
@@ -55,6 +56,7 @@
 modules:
 	make -C hal
 	make -C lylib
+	make ${CFLAGS} -C etc
 	cd ${MQTT_LIBPATH} && bash build.sh
 
 binary:  ${SRCFILES}

--
Gitblit v1.9.1