From 809c78de808ed5563e9af4a56227965974ec25fa Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Mon, 24 Jun 2019 22:39:42 +0800
Subject: [PATCH] add cJSON, update mosquitto to 1.6.3 and update the makefile

---
 mqttd/hal/makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

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

--
Gitblit v1.9.1