From c6dff0f738ecd7b1d8f7857dbf3b49fb23ee9b29 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 30 Jul 2019 23:27:21 +0800
Subject: [PATCH] Update setup_wiringPi shell script
---
mqttd/hal/makefile | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/mqttd/hal/makefile b/mqttd/hal/makefile
index c1200cf..2b5da3b 100644
--- a/mqttd/hal/makefile
+++ b/mqttd/hal/makefile
@@ -1,10 +1,14 @@
PWD=$(shell pwd )
+
LIBNAME=$(shell basename ${PWD} )
+PROJPATH=$(shell dirname ${PWD} )
+
+CFLAGS+=-I${PROJPATH}
all: clean
@rm -f *.o
- ${CROSS_COMPILE}gcc -c *.c
+ @${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
${CROSS_COMPILE}ar -rcs lib${LIBNAME}.a *.o
clean:
--
Gitblit v1.9.1