Rev 7218 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
#!/bin/sh## ${R_HOME}/bin/COMPILE# @configure_input@revision='$Revision: 1.5 $'version=`set - ${revision}; echo ${2}`version="R compilation front end ${version}"usage="Usage: R COMPILE [options] filesCompile the specified files for subsequent collection into a sharedlibrary using \`R SHLIB'. Currently, only C and Fortran files (withextensions \`.c' and \`.f', respectively, are supported.Options:-h, --help print short help message and exit-v, --version print version info and exitOther options of the form \`-DMACRO' or \`VAR=VALUE' are passed on tothe compilation.Report bugs to <R-bugs@lists.r-project.org>."MAKE=${MAKE-@MAKE@}if test -r Makefile; thenmakefiles="-f ${R_HOME}/etc/Makeconf -f Makefile"elsemakefiles="-f ${R_HOME}/etc/Makeconf"fiobjs=while test -n "${1}"; docase ${1} in-h|--help)echo "${usage}"; exit 0 ;;-v|--version)echo "${version}"; exit 0 ;;*.[cf])objs="${objs} `echo ${1} | sed 's/\.[^\.][^\.]*$/.o/'`" ;;-D*|*=*)MAKEFLAGS="${MAKEFLAGS} ${1}" ;;*)echo "ERROR: don't know how to compile \`${1}'"exit 1;;esacshiftdone${MAKE} ${makefiles} ${MAKEFLAGS} ${objs}### Local Variables: ***### mode: sh ***### sh-indentation: 2 ***### End: ***