From 9ada9cdc52c22fabb658680d3869d3ab6ab87f61 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Mon, 19 Aug 2024 10:26:57 +0800
Subject: [PATCH] update booster from booster project
---
booster/makefile | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/booster/makefile b/booster/makefile
index 745ae81..0fd869e 100644
--- a/booster/makefile
+++ b/booster/makefile
@@ -1,13 +1,33 @@
+#********************************************************************************
+# 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 )
+BUILD_ARCH=$(shell uname -m)
+ifneq ($(findstring $(BUILD_ARCH), "x86_64" "i386"),)
+ CROSS_COMPILE?=arm-linux-gnueabihf-
+endif
+
+#CROSS_COMPILE=
+
LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )
+CFLAGS+=-D_GNU_SOURCE
all: clean
@rm -f *.o
- @${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c *.c
- ${CROSSTOOL}ar -rcs lib${LIBNAME}.a *.o
+ @${CROSS_COMPILE}gcc ${CFLAGS} -I${TOPDIR} -c *.c
+ ${CROSS_COMPILE}ar -rcs lib${LIBNAME}.a *.o
clean:
@rm -f *.o
@@ -15,4 +35,3 @@
distclean:
@make clean
- @rm -f cscope.* tags
--
Gitblit v1.9.1