📄 clink.sh
字号:
#!/bin/sh## clink.sh - script for compile and link with gcc## Copyright(C) eyBuild Group, 2005, 2006. All Rights Reserved. ## modification history# --------------------# 01a, 2006-7-6 newzy create#echo ==== Enter File: $0 ====export EYBUILD_BASE=$1; shiftexport PATH=$EYBUILD_BASE/bin/:$PATHexport CSP_DEBUG=FALSEexport PROJECT_BASE=export USR_INC=export USR_SRCS=export USR_LIBS=export CC=gccTARGET_PATH=$4TARGET_NAME=../modules/$5cd "$TARGET_PATH"if [ ! -d objs ]; then mkdir -m=rwx objs; fiif [ ! -d modules ]; then mkdir -m=rwx modules; ficd objsecho "$1 ==> $2" >cspmap.mapecho " $3" >>cspmap.mapcsp2bin cspmap.map csp_maplist ../cspsrc CSP_INCS="../ $EYBUILD_BASE/include"CSP_LIBS="$EYBUILD_BASE/lib/libeybuild.a"if [ "/" = "$2" ]; then CSP_SRCS="$TARGET_PATH/cgimain.c $TARGET_PATH/cspsrc/csp_maplist.c"else CSP_SRCS="$TARGET_PATH/../cgimain.c $TARGET_PATH/cspsrc/csp_maplist.c"fiINCS=for inc in $CSP_INCS $USR_INCdo INCS="$INCS -I$inc"donerm -f $TARGET_NAME$CC -g -s -shared $CC_OPTS -DHAVE_CSP_ENGINE $INCS \ -o $TARGET_NAME $CSP_SRCS $USR_SRCS $CSP_LIBS $USR_LIBS 2>&1echo ==== Exit File : $0 ====
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -