From 14c45586ac7c9e01cb4745185e698e593773bf08 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 28 Aug 2024 17:52:01 +0800 Subject: [PATCH] update openlibs top build.sh --- hal/modules/makefile | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hal/modules/makefile b/hal/modules/makefile index a904fdc..befd362 100644 --- a/hal/modules/makefile +++ b/hal/modules/makefile @@ -26,7 +26,15 @@ SRCFILES = $(wildcard *.c) BINARIES=$(SRCFILES:%.c=%) -all: binaries install +# libgpiod compile install path +LIBS_PATH=install +CFLAGS+=-I ${LIBS_PATH}/include +LDFLAGS+=-L ${LIBS_PATH}/lib -lgpiod + +all: libs binaries install + +libs: + make -C libgpiod CROSS_COMPILE=${CROSS_COMPILE} binaries: ${BINARIES} @@ -40,6 +48,8 @@ @rm -f *.o *.lo $(BINARIES) distclean: clean - @rm -f tags cscope* + @rm -f tags cscope* + @make clean -C libgpiod + @rm -rf install .PHONY: clean entry -- Gitblit v1.9.1