代码拉取完成,页面将自动刷新
#!/bin/sh
REMOVEMAKEFILES=0
BUILDTARGET="build-default"
SETUPFILE="setup_fistr.sh"
USER_CONFIGFILE="Makefile.conf"
HECMW_CONFIGFILE="Makefile.dev"
INTERMED_CONFIGFILE="Makefile.mid"
MAKEFILE_NAME="Makefile"
MAKEFILE_SETUPFILE="Makefile.am"
LIBSRCDIRS="\
"
BUILDDIRS="${LIBSRCDIRS} ."
for i in $*
do
if [ "\"$i\"" = "\"-remove-makefiles\"" -o "\"$i\"" = "\"--remove-makefiles\"" ]; then
REMOVEMAKEFILES=1
#else
# echo "Unknown paramer: " $i " (ignored, -h:help)"
fi
done
#------------------------------------------------------------------------------#
#
# create intermidiate config file
#
sed -e "s!\([[:alnum:]_]\)[[:blank:]]*=[[:blank:]]*\(.*\)!\1='\2'!g" \
${HECMW_CONFIGFILE} > ${INTERMED_CONFIGFILE}
sed -e "s!\([[:alnum:]_]\)[[:blank:]]*=[[:blank:]]*\(.*\)!\1='\2'!g" \
${USER_CONFIGFILE} >> ${INTERMED_CONFIGFILE}
. ./${INTERMED_CONFIGFILE}
#
# remove Makefiles
#
if [ ${REMOVEMAKEFILES} -eq 1 ]; then
for i in ${BUILDDIRS}
do
${RM} $i/${MAKEFILE_NAME}
done
${RM} ${INTERMED_CONFIGFILE}
exit 0
fi
#------------------------------------------------------------------------------#
#
# create Makefile
#
for i in ${BUILDDIRS}
do
sed -e "s!@prefix@!${PREFIX}!" \
-e "s!@bindir@!${BINDIR}!" \
-e "s!@libdir@!${LIBDIR}!" \
-e "s!@includedir@!${INCLUDEDIR}!" \
-e "s!@cc@!${CC}!" \
-e "s!@cflags@!${CFLAGS}!" \
-e "s!@base_cflags@!${BASE_CFLAGS}!" \
-e "s!@ldflags@!${LDFLAGS}!" \
-e "s!@optflags@!${OPTFLAGS}!" \
-e "s!@make@!${MAKE}!" \
-e "s!@ar@!${AR}!" \
-e "s!@cp@!${CP}!" \
-e "s!@rm@!${RM}!" \
-e "s!@mv@!${MV}!" \
-e "s!@ranlib@!${RANLIB}!" \
-e "s!@mkdir@!${MKDIR}!" \
-e "s!@fstrexec_targetfile@!${FSTREXEC_TARGETFILE}!" \
-e "s!@cobjfilepostfix@!${COBJFILEPOSTFIX}!" \
-e "s!@build_target@!${BUILDTARGET}!" \
$i/${MAKEFILE_SETUPFILE} > $i/${MAKEFILE_NAME}
done
${RM} ${INTERMED_CONFIGFILE}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。