From 72fea370ff20ecb2494ab985c4431b4bd691e7cd Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 17 Nov 2025 15:11:05 +0800
Subject: [PATCH] update lighted program
---
project/modules/makefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/project/modules/makefile b/project/modules/makefile
index 1b2a503..dbd9de2 100644
--- a/project/modules/makefile
+++ b/project/modules/makefile
@@ -25,11 +25,14 @@
CFLAGS+=-I${OPENLIBS_INCPATH} -I${TOPDIR}/booster
-all: clean
+all: prelibs clean
@rm -f *.o
${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
${CROSS_COMPILE}ar -rcs lib${LIBNAME}.a *.o
+prelibs:
+ if [ -n "${CROSS_COMPILE}" ] ; then cd ${TOPDIR}/openlibs/libgpiod && ./build.sh ; fi;
+
clean:
@rm -f *.o
@rm -f *.a
--
Gitblit v1.9.1