From f696e95a01ee103605a9ed5fd23de58847ab9abc Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 03 Nov 2021 22:47:05 +0800 Subject: [PATCH] rename gpio.c to gpiod.c for it will conflict with rpi gpio command --- mqttd/hal/makefile | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/mqttd/hal/makefile b/mqttd/hal/makefile index c2c5553..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