# # $Id: mklib.solaris,v 1.1.1.1 2003/01/28 02:15:23 wes Exp $ # $Revision: 1.1.1.1 $ # $Log: mklib.solaris,v $ # Revision 1.1.1.1 2003/01/28 02:15:23 wes # Manual rebuild of rm150 repository. # # Revision 1.3 2001/06/04 01:53:53 wes # Updated command line args to be the same as those for linux & irix. # # Revision 1.2 2000/10/03 11:36:50 wes # Replaced multiple IRIX mklibs with a single version that # accommodates all species of builds. # # Revision 1.1.1.1 2000/02/28 21:29:40 wes # OpenRM 1.2 Checkin # # Revision 1.1.1.1 2000/02/28 17:18:48 wes # Initial entry - pre-RM120 release, source base for OpenRM 1.2. # # Revision 1.4 1999/07/24 18:35:43 wes # Added debug targets for solaris, linux. # # Revision 1.3 1999/07/09 02:19:16 wes # Shared obj's for linux, solaris. # # Revision 1.2 1999/02/16 02:19:02 wes # for n32 builds # # Revision 1.1.1.1 1999/02/13 14:11:08 wes # Checkin. # # #!/bin/sh # Make a Solaris shared library # contributed by Arno Hahma (arno@nitro.pp.utu.fi) #--identification------------------------------------------------------ # mklib.solaris,v 1.7 1997/10/21 23:32:31 brianp Exp # mklib.solaris,v # Revision 1.7 1997/10/21 23:32:31 brianp # now takes major and minor version arguments # #--common-------------------------------------------------------------- # Usage: mklib # # are arcitecture specific build flags # is name of output library (LIBRARY) # is major version number (MAJOR) # is minor version number (MINOR) # remaining arguments are object files (OBJECTS) # # added local installation target prefix (RM_INSTALL) # tidied up the build # # 04/23/01 jdb # ARCHFLAGS=$1 shift 1 LIBRARY=$1 shift 1 MAJOR=$1 shift 1 MINOR=$1 shift 1 VERSION=$MAJOR.$MINOR OBJECTS=$* #--platform------------------------------------------------------------- echo "Building shared object $LIBRARY.so.$VERSION and the archive library $LIBRARY.a" echo "Building shared object $LIBRARY.so.$VERSION " rm -f ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ar ruv ${LIBRARY}.a ${OBJECTS} rm -f ${LIBRARY}.so.${VERSION} ld -G -o ${LIBRARY}.so.${VERSION} ${OBJECTS} cp ${LIBRARY}.a ${LIBRARY}.so.${VERSION} ../lib cd ../lib \rm ${LIBRARY}.so > /dev/null ln -s ${LIBRARY}.so.${VERSION} ${LIBRARY}.so