diff options
author | gareth <gareth> | 2000-12-01 20:37:35 +0000 |
---|---|---|
committer | gareth <gareth> | 2000-12-01 20:37:35 +0000 |
commit | 0fa77f7f91a09cf332fd0433c7b6e962a80cecaf (patch) | |
tree | 4957535f0a4e846af59b7a8d92a852b71ddebaab /xc/extras/Mesa/bin/mklib.beos-x86 | |
parent | d03307dd9f98036c40abf2f98dac3fde22ef2e89 (diff) |
Merge with trunk (almost there!).ati-4-1-1-20001202-mergeati-4-1-1-branch
Diffstat (limited to 'xc/extras/Mesa/bin/mklib.beos-x86')
-rwxr-xr-x | xc/extras/Mesa/bin/mklib.beos-x86 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/xc/extras/Mesa/bin/mklib.beos-x86 b/xc/extras/Mesa/bin/mklib.beos-x86 new file mode 100755 index 000000000..eba4a6148 --- /dev/null +++ b/xc/extras/Mesa/bin/mklib.beos-x86 @@ -0,0 +1,62 @@ +#!/bin/sh + +# Make a library file for BeOS on x86 + +#--identification------------------------------------------------------ + +# $Id: mklib.beos-x86,v 1.1.4.1 2000/12/01 20:37:45 gareth Exp $ + +# $Log: mklib.beos-x86,v $ +# Revision 1.1.4.1 2000/12/01 20:37:45 gareth +# Merge with trunk (almost there!). +# +# Revision 1.1 2000/11/30 17:31:30 dawes +# Initial revision +# +# Revision 1.2 1999/09/15 15:10:20 brianp +# added third, tiny version number to arguments +# +# Revision 1.1 1999/08/19 13:52:59 brianp +# initial check-in (post-crash) +# + + +#--common-------------------------------------------------------------- + +LIBRARY=$1 +shift 1 + +MAJOR=$1 +shift 1 + +MINOR=$1 +shift 1 + +TINY=$1 +shift 1 + +OBJECTS=$* + +#--platform------------------------------------------------------------- + +# build system library pathnames +SYSLIBNAMES="libroot.so.LIB libbe.so.LIB glue-noinit.a init_term_dyn.o start_dyn.o lib3DfxGlide2X.so.LIB" + +for i in `echo $BELIBRARIES | sed "s/;/ /g"` +do + for j in $SYSLIBNAMES + do + if [ -e $i/$j ] ; then SYSLIBS="$SYSLIBS $i/$j" ; fi + done +done + +# remove previous library before linking to avoid duplicate symbols +rm ../lib/$LIBRARY 2>/dev/null + +# Other libraries which we may be dependent on. Since we make the libraries +# in the order libMesaGL.a, libMesaGLU.a, libMesatk.a, libMesaaux.a each +# just depends on its predecessor. +# (code picked up from mklib.aix) +OTHERLIBS=`ls ../lib/*.so.LIB 2>/dev/null` + +mwccx86 -sharedlibrary -pragma 'export on' $SYSLIBS $OTHERLIBS -o $LIBRARY $OBJECTS |