|
发表于 2003-10-14 08:17:26
|
显示全部楼层
- if [ "$TARGETARCHLOC" = "CYGWIN_NT-5.0" -o "$TARGETARCHLOC" = "CYGWIN_NT-5.1" ]
- then
- PERL=/usr/bin/perl
- SYM2DEF=sym2def_cygwin
- else
- if [ "$TARGETARCHLOC" = "SunOS" ]
- then
- PERL=/usr/bin/perl
复制代码
诸如此类的东西,便于移植
- exec \
- env - \
- HOME="$HOME" \
- LOGNAME="${LOGNAME:-$USER}" \
- USER="${LOGNAME:-$USER}" \
- MODLIST="$modlist" \
- \
- MK_DIR="$mk_dir" \
- GENFILE="$genfile" \
- TARGET_ARCH="$target" \
- METAOPTIONS="$variantfile" \
- PROJNAME="$PROJNAME" \
- LM_LICENSE_FILE="$LM_LICENSE_FILE" \
- $make -f "$mk_dir/mk.mk" $makeflags "$@"
复制代码
看这里,$make就是被附过值得,不同的系统,make的路径可能不一样,参数也不一样 |
|