From b3b725b1e6044d29fb5f484979766d1ef8a7fa9f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 15 Dec 2003 16:14:55 +0000 Subject: Assorted mklib tweaks. Added Intel icc support to mklib. --- bin/mklib | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'bin') diff --git a/bin/mklib b/bin/mklib index 327fd8ccf2..3dc4cd91c1 100755 --- a/bin/mklib +++ b/bin/mklib @@ -335,6 +335,46 @@ case $ARCH in FINAL_LIBS="${LIBNAME}" ;; + 'icc') + # Intel C compiler + LIBNAME="lib${LIBNAME}" # prefix with "lib" + + if [ $STATIC = 1 ] ; then + echo "mklib: Making Intel ICC static library: " ${LIBNAME}.a + LINK="ar" + OPTS="-ruv" + # make lib + ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} + # finish up + FINAL_LIBS="${LIBNAME}.a" + else + OPTS="-shared" + VERSION="${MAJOR}.${MINOR}.${PATCH}" + + echo "mklib: Making Intel ICC shared library: " ${LIBNAME}.so.${VERSION} + + if [ $CPLUSPLUS = 1 ] ; then + LINK="icc" + else + LINK="icc" + fi + + # rm any old libs + rm -f ${LIBNAME}.so.${VERSION} + rm -f ${LIBNAME}.so.${MAJOR} + rm -f ${LIBNAME}.so + + # make lib + ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS} + # make usual symlinks + ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} + ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so + # finish up + FINAL_LIBS="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so" + fi + ;; + + 'example') # If you're adding support for a new architecture, you can # start with this: -- cgit v1.2.3