From be98d13782b05e7659f601980ef695a493d6bee1 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 21 Aug 2024 17:29:28 +0800
Subject: [PATCH] Add infrared source code

---
 booster/makefile |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/booster/makefile b/booster/makefile
index 745ae81..b988130 100644
--- a/booster/makefile
+++ b/booster/makefile
@@ -1,18 +1,35 @@
+#********************************************************************************
+#      Copyright:  (C) 2023 LingYun IoT System Studio
+#                  All rights reserved.
+#
+#       Filename:  Makefile
+#    Description:  This file used compile all the source code to static library
+#
+#        Version:  1.0.0(11/08/23)
+#         Author:  Guo Wenxue <guowenxue@gmail.com>
+#      ChangeLog:  1, Release initial version on "11/08/23 16:18:43"
+#
+#*******************************************************************************
 
 PWD=$(shell pwd )
 
+#CROSS_COMPILE=arm-linux-gnueabihf-
+
 LIBNAME=$(shell basename ${PWD} )
-TOPDIR=$(shell dirname ${PWD} )
 
 all: clean
 	@rm -f *.o
-	@${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c *.c 
-	${CROSSTOOL}ar -rcs  lib${LIBNAME}.a *.o
+	@${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
-	@rm -f cscope.* tags
+	@make clean -C testcase
+
+.PHONY: clean  test distclean

--
Gitblit v1.9.1