Index: src/scripts/COMPILE.in =================================================================== --- src/scripts/COMPILE.in (revision 31681) +++ src/scripts/COMPILE.in (working copy) @@ -15,8 +15,8 @@ usage="Usage: R CMD COMPILE [options] files Compile the specified files for subsequent collection into a shared -library using 'R CMD SHLIB'. Currently, C, C++, and FORTRAN files -(with extensions '.c', '.cc' or '.cpp' or '.C', and '.f', respectively), +library using 'R CMD SHLIB'. Currently, C, ObjC, C++, and FORTRAN files +(with extensions '.c', '.m', '.cc' or '.cpp' or '.C', and '.f', respectively), are supported. Options: Index: src/scripts/SHLIB.in =================================================================== --- src/scripts/SHLIB.in (revision 31681) +++ src/scripts/SHLIB.in (working copy) @@ -59,7 +59,7 @@ fi objs="${objs} `echo ${1} | sed 's/\.[^\.][^\.]*$/.o/'`" ;; - *.[co]) + *.[com]) if test -z "${shlib}"; then shlib="`echo ${1} | sed 's/\.[^\.][^\.]*$/@SHLIB_EXT@/'`" fi Index: src/scripts/INSTALL.in =================================================================== --- src/scripts/INSTALL.in (revision 31681) +++ src/scripts/INSTALL.in (working copy) @@ -466,7 +466,7 @@ cd .. else cd src; - srcs=`ls *.[cfC] *.cc *.cpp 2>/dev/null` + srcs=`ls *.[cfmC] *.cc *.cpp 2>/dev/null` if test -n "${srcs}"; then sh "${R_HOME}/bin/SHLIB" -o "${pkg_name}@SHLIB_EXT@" ${srcs} \ && cp *@SHLIB_EXT@ "${R_PACKAGE_DIR}/libs" \