blob: de85e782a37ad4f69438a51a7522d16723401c58 [file] [log] [blame]
liubin281ac462023-07-19 14:22:54 +08001#!/bin/bash
2
3# Config item.
4# static / shared
5LIB_TYPE=static
6# gcc-4.9 / gcc-8.4
7PLATFORM=gcc-4.9
8
9ROOT_DIR=`pwd`
10TOOLCHAIN_DIR=$ROOT_DIR/toolchain/$BUILD_PLATFORM
11echo "toolchain : $ROOT_DIR"
12
13if [ ! -d out/bin ];then
14 mkdir -p out/bin
15fi
16
17if [ ! -d out/lib ];then
18 mkdir -p out/lib
19fi
20
21cd mbtk
22
23if [ -n "$1" ] ;then
24 case "$1" in
25 clean)
26 make clean
27 ;;
28 *)
29 exit 1;;
30 esac
31else # 无参数
32 make
33fi
34
35cd $ROOT_DIR
36
37echo "Build complete."