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/hal/makefile |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/mqttd/hal/makefile b/mqttd/hal/makefile
index a08725c..2b5da3b 100644
--- a/mqttd/hal/makefile
+++ b/mqttd/hal/makefile
@@ -1,11 +1,17 @@
 
+PWD=$(shell pwd )
+
 LIBNAME=$(shell basename ${PWD} )
+PROJPATH=$(shell dirname ${PWD} )
+
+CFLAGS+=-I${PROJPATH}
 
 all: clean
-	${CROSS_COMPILE}gcc -c *.c 
+	@rm -f *.o
+	@${CROSS_COMPILE}gcc ${CFLAGS} -c *.c 
 	${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
 
 clean:
-	@rm -f *.o 
+	@rm -f *.o
 	@rm -f *.a
 

--
Gitblit v1.9.1