File: get_objdir

package info (click to toggle)
pari 2.17.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 24,508 kB
  • sloc: ansic: 281,184; sh: 861; perl: 420; yacc: 214; makefile: 162; f90: 88
file content (35 lines) | stat: -rw-r--r-- 923 bytes parent folder | download | duplicates (11)
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
# Target directory for object files
pre=O
objdir=$pre$osname-$arch;
if test -n "$dfltobjdir"; then
  if test "$dfltobjdir" = auto; then
    case "$kernlvl0" in
      $asmarch);;
      sparcv8_micro)
         if test "$arch" != sparcv9; then objdir=$objdir-$kernlvl0; fi ;;
      *) objdir=$objdir-$kernlvl0 ;;
    esac
    if test -n "$with_gmp"; then objdir=$objdir-gmp; fi
    dfltobjdir=
  else
    objdir="$dfltobjdir"
  fi
fi
if test -z "$dfltobjdir"; then
  case "$optimization" in
    full)      objdir=$objdir;;
    debugging) objdir=$objdir.dbg ;;
    profiling) objdir=$objdir.prf ;;
    gcov)      objdir=$objdir.gcov ;;
  esac
fi

if test "$fastread" != yes; then
  cat << EOT
==========================================================================
This is the name of the directory where all the object files will be:
EOT
  echo $n ..."Enter dir name : $c"
  dflt=$objdir; rep=; . ./myread
  objdir=$ans
fi