File: build

package info (click to toggle)
pcx 1.1.10-4
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 1,636 kB
  • ctags: 1,127
  • sloc: ansic: 17,648; sh: 212; makefile: 150; csh: 48
file content (87 lines) | stat: -rwxr-xr-x 2,419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh


if test -z "$PCx_ARCH" ; then
  PCx_ARCH=`./pcxarch`; export PCx_ARCH
fi

cd F2C;
make;
cd ../ ;

if test "$1" = "PCx_wssmp" ; then
  echo ;
  echo "***************************************************";
  echo Building PCx with the IBM WSSMP Cholesky solver....;
  echo "***************************************************";
  echo ;
  if test -z "$WSSMP_LIB" ; then
    if (test -f wssmp/libwssmpp2.a) then
      WSSMP_LIB=../wssmp/libwssmpp2.a
    else 
      if test -f wssmp/libwssmp.a ; then
        WSSMP_LIB=../wssmp/libwssmp.a;
      else
        echo WSSMP library not found in ./wssmp/ - aborting ; 
        exit 1 
      fi
    fi
  fi
  export WSSMP_LIB ;
# go ahead and make it
  make $1 ;
else 
# here if user typed "make PCx_NgPeyton" or "make PCx" or "make"
  if (test "$1" = "PCx_NgPeyton" -o "$1" = "PCx" -o -z "$1") then
    echo ;
    echo "***************************************************";
    echo Building PCx with the Ng Peyton Cholesky solver....
    echo "***************************************************";
    echo ;
    if test -z "$NG_LIB" ; then
      NG_LIB=../Ng-Peyton/cholesky.a
      if (test ! -f Ng-Peyton/cholesky.a) then
        if (test -d Ng-Peyton) then
          cd Ng-Peyton;
          make;
          cd ../ ;
        else
          echo No directory ./Ng-Peyton, aborting.... ; 
          exit 1 ;
        fi
      fi
      if (test ! -f Ng-Peyton/cholesky.a) then
        echo Tried to build cholesky.a in Ng-Peyton, but ;
        echo this file was apparently not created. ;
      fi
      export NG_LIB ;
    fi
# go ahead and make it
    make $1 ;
  else
    if test "$1" = "PCx_mysolver" ; then
      echo ;
      echo "***********************************************";
      echo Building PCx with the user-supplied solver ;
      echo Requires file ./SRC/mysolver.c and ;
      echo      library ./mysolver/libmysolver.a to be present ;
      echo "***********************************************";
      echo ;
      if (test ! -f ./SRC/mysolver.c) then 
        echo File ./SRC/mysolver.c not present - aborting ;
        exit 1 ;
      fi
      if (test ! -f ./mysolver/libmysolver.a) then
        echo Library ./mysolver/libmysolver.a not present - aborting ;
        exit 1 ;
      fi
# go ahead and make PCx_mysolver
      make $1 ;
    else
      echo ;
      echo Argument "$1" not recognized - aborting.... ;
      echo ;
    fi
  fi
fi