《一、主机构建环境配置过程》
1.定义主机系统架构
/***************uname -m appear machine number(i686) ********************************
****************sed -e s/abc/def indicate abd instand def*********************************
HOSTARCH := $(shell uname -m | \
sed -e s/i.86/i386/ \
-e s/sun4u/sparc64/ \
-e s/arm.*/arm/ \
-e s/sa110/arm/ \
-e s/powerpc/ppc/ \
-e s/macppc/ppc/)
HOSTARCH =i386
2.定义主机操作系统类型
/***************uname -s appear machine kernal(Linux) ********************************
****************tr ‘[:upper:]’ ‘[:lower:]’ A turn to a***********************************
HOSTOS := $(shell uname -s | tr '[:upper:]' '[:lower:]' | \
sed -e 's/\(cygwin\).*/cygwin/')
HOSTOS=linux
3.设定编译输出目录