"Fossies" - the Fresh Open Source Software Archive

Member "ccmath-2.2.1/makelibs.sh" (8 Nov 2001, 886 Bytes) of package /linux/misc/old/ccmath-2.2.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 # CCM Library compilation script
    4 #     run from distribution directory:  'makelibs.sh'
    5 # When installing on an Intel based platform
    6 #     respond with  y  to the prompt
    7 #     otherwise abort and run the 'non_intel.sh' script first.
    8 # Then run 'makelibs.sh' and respond with n at this prompt. 
    9 
   10 LST="cfit complex fft geom intg matrix roots sfunc simu sort statf tseries util xarm"
   11 MDR=`pwd`
   12 LSOD=$MDR/tmp
   13 echo "Intel platform ? (y/n)"
   14 read F
   15 for dr in $LST
   16   do
   17     cd $MDR/$dr
   18     echo `pwd`
   19     cc -c -O3 *.c
   20     mv *.o $LSOD
   21   done
   22 
   23 # Compile corrected svd QR support without optimizing
   24 #     The GNU optimizer destroys the fix!
   25 cd $MDR/matrix
   26 cc -c qrb*.c
   27 mv *.o $LSOD
   28 cd $MDR
   29 
   30 if [ $F = "y" ]
   31   then cd $MDR/matrix
   32     cc -c -O3 solv.s
   33     mv *.o $LSOD
   34     cd $MDR/simu
   35     cc -c -O3 *.s
   36     mv *.o $LSOD
   37 fi
   38 cd $LSOD
   39 ar r libccm.a *.o
   40 ld -shared -o libccm.so *.o
   41 rm *.o