Mac binaries
[jabaws.git] / website / archive / binaries / mac / src / disembl / Tisean_3.0.1 / bins.sh
1 #! /bin/csh -f
2
3 echo "This directory contains binary executables" >& RTMP
4
5 switch ($OSTYPE) 
6
7 case linux:
8    echo "making statically linked ELF excutables for linux"
9    echo "meant for the LINUX operating system\n" >& RTMP
10    setenv CC "gcc -static -O"
11    setenv FC "g77 -static -O"
12    setenv OS "linux"
13    echo "C compiler used: " $CC >>& RTMP
14    echo "version:" >>& RTMP
15    $CC -v  >>& RTMP
16    echo "" >>& RTMP
17    echo "Fortran compiler used: " $FC >>& RTMP
18    echo "version:" >>& RTMP
19    $FC -v  >>& RTMP
20    echo "" >>& RTMP
21    breaksw
22
23 case osf1:
24    echo "making statically linked excutables for osf1"
25    echo "meant for compaq/digital operating systems\n" >& RTMP
26    setenv CC "cc -non_shared -O"
27    setenv FC "f77 -non_shared -O"
28    setenv OS "osf1"
29    echo "C compiler used: " $CC >>& RTMP
30    echo "Fortran compiler used: " $FC >>& RTMP
31    echo "" >>& RTMP
32    breaksw
33
34 case solaris:
35    echo "making statically linked ELF excutables for solaris"
36    echo "meant for solaris/SPARC operating systems\n" >& RTMP
37    setenv CC "cc -non_shared -O"
38    setenv FC "g77 -static -O"
39    setenv OS "osf1-g77"
40    echo "C compiler used: " $CC >>& RTMP
41    echo "Fortran compiler used: " $FC >>& RTMP
42    echo "version:" >>& RTMP
43    g77 -v  >>& RTMP
44    echo "" >>& RTMP
45    breaksw
46
47 default:
48    echo "cannot make " $OSTYPE " executables"
49    exit
50    breaksw
51
52 endsw
53
54 make mproper
55 ./configure --prefix={$PWD}/bin-{$OS}
56 make install
57
58 file bin-{$OS}/delay && \
59    (echo "The  executables are in the following format:" >>& RTMP)
60 file bin-{$OS}/delay | sed "s/.*://" >>& RTMP
61 mv RTMP bin-{$OS}/README
62 tar -vcf `basename $PWD`-{$OS}.tar bin-{$OS}
63 gzip -vf `basename $PWD`-{$OS}.tar
64 #rm -Rf bin-{$OS}