From 7deaa4a49b1d0fb2112a69719141709b9c261c7c Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 21 Aug 2024 16:05:07 +0800
Subject: [PATCH] Update leds source code

---
 booster/makefile |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/booster/makefile b/booster/makefile
index 0fd869e..b988130 100644
--- a/booster/makefile
+++ b/booster/makefile
@@ -13,25 +13,23 @@
 
 PWD=$(shell pwd )
 
-BUILD_ARCH=$(shell uname -m)
-ifneq ($(findstring $(BUILD_ARCH), "x86_64" "i386"),)
-    CROSS_COMPILE?=arm-linux-gnueabihf-
-endif
-
-#CROSS_COMPILE=
+#CROSS_COMPILE=arm-linux-gnueabihf-
 
 LIBNAME=$(shell basename ${PWD} )
-TOPDIR=$(shell dirname ${PWD} )
-CFLAGS+=-D_GNU_SOURCE
 
 all: clean
 	@rm -f *.o
-	@${CROSS_COMPILE}gcc ${CFLAGS} -I${TOPDIR} -c *.c
+	@${CROSS_COMPILE}gcc ${CFLAGS} -c *.c
 	${CROSS_COMPILE}ar -rcs  lib${LIBNAME}.a *.o
 
 clean:
-	@rm -f *.o
-	@rm -f *.a
+	@rm -f *.o *.a
+
+test:
+	make -C testcase CROSS_COMPILE=${CROSS_COMPILE}
 
 distclean:
 	@make clean
+	@make clean -C testcase
+
+.PHONY: clean  test distclean

--
Gitblit v1.9.1