~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/sh.tina

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #!/usr/local/bin/bash
  2 #
  3 # TINA environment
  4 #
  5 # This file will setup the environment variables necessary to compile
  6 # and use TINA on the following platforms:
  7 #  - Sun Sparc Solaris 2+
  8 #  - x86 Linux 2.0.0+ libc5 & libc6 (glibc 2)
  9 #  - IP32 Irix ( James S Perrin ) 
 10 # Users of other systems should modify this file appropriately.
 11 #
 12 # a.lacey@man.ac.uk , j.perrin@mcc.ac.uk
 13 #
 14 # You need to ensure the following variables are set before
 15 # this file is run:
 16 #
 17 # XLIBS_LIBDIR       /usr/X11R6/lib     [or where X11 libs are]
 18 # XLIBS_INCLUDEDIR   /usr/X11R6/include [or where X11 includes are]
 19 # TINA_X_GUI         set to 0 (xview) or 1 (motif)
 20 #
 21 # for xview you need to set
 22 #
 23 # XVIEW_INCLUDEDIR    location of xview includes
 24 # XVIEW_LIBDIR        location of xview libs
 25 #  
 26 # or for Motif/Lesstif
 27 #
 28 # MOTIF_INCLUDEDIR    location of motif/lesstif includes
 29 # MOTIF_LIBDIR        location of motif/lesstif libs
 30 #
 31 # or for TCL
 32 #
 33 # TCL_INCLUDEDIR      location of Tcl/Tk includes
 34 # TCL_LIBDIR          location of Tcl/Tk libs
 35 #
 36 #################################################################
 37 
 38 
 39 #
 40 # TINA base location
 41 #
 42 
 43 #export TINA_BASE_DIR=`pwd`
 44 #export TINA_BASE_DIR=/usr/local/Tina
 45 export TINA_BASE_DIR=/home/server5/projects/Tina/
 46 
 47 XVIEW=0
 48 XM=1
 49 TCL=2
 50 
 51 if [ -z "$TINA_X_GUI" ]; then
 52   echo "TINA: you really should set your TINA_X_GUI... Using XView"
 53   TINA_X_GUI=0
 54 fi
 55 
 56 case $TINA_X_GUI in
 57   $XVIEW)
 58     export TINA_X_LIBS="-lxview -lolgx -lX11"
 59     export TINA_WIDGET_LIB=-ltinaXv
 60     export TINA_GRAPHIX_LIB=-ltinaX11
 61     ;;
 62   $XM)
 63     export TINA_X_LIBS="-lXm -lXt -lX11"
 64     export TINA_WIDGET_LIB=-ltinaXm
 65     export TINA_GRAPHIX_LIB=-ltinaX11
 66     ;;
 67   $TCL)
 68     export TINA_X_LIBS="-ltcl -lsocket -lnsl -ldl -lm"
 69     export TINA_WIDGET_LIB=-ltinaTCLwt
 70     export TINA_GRAPHIX_LIB=-ltinaNULLgx
 71 esac
 72 
 73 #################################################################
 74 # You should have no need to edit the following
 75 #################################################################
 76 
 77 export OS=`uname`
 78 export HARDWARE=`uname -m`
 79 
 80 #
 81 # Choose Endianness
 82 #
 83 case $HARDWARE in 
 84   sun4*|IP32)
 85     export TINA_ARCHITECTURE=BIG_ENDIAN_ARCHITECTURE ;;
 86   i*86)
 87     export TINA_ARCHITECTURE=LITTLE_ENDIAN_ARCHITECTURE ;;
 88   *)
 89     echo "unable to define architecture for " $HARDWARE
 90 esac    
 91 
 92 # Choose OS
 93 case $OS in
 94   SunOS)
 95     export TINA_COMPILE_FLAGS="-pipe -g -D__STRICT_ANSI__ -D__EXTENSIONS__ -DSOLARIS -D_POSIX_C_SOURCE -D$TINA_ARCHITECTURE"
 96     export TINA_LIBDIR=$TINA_BASE_DIR/lib-solaris
 97     export TINA_OS="SOLARIS"
 98     ;;
 99 
100   Linux)
101     export TINA_BASE_DIR=/usr/local/Tina
102     export TINA_LIBDIR=$TINA_BASE_DIR/lib
103     export TINA_COMPILE_FLAGS="-g -pipe -ansi -D_BSD_SOURCE -D_POSIX_C_SOURCE -D$TINA_ARCHITECTURE"
104     export TINA_OS="LINUX"
105     ;;
106 
107   IRIX)
108     # IRIX basically spoofs SOLARIS for now
109     export TINA_LIBDIR=$TINA_BASE_DIR/lib-irix32
110     export TINA_COMPILE_FLAGS="-g -ansi -D__EXTENSIONS__ -DSOLARIS -D_POSIX_C_SOURCE -D$TINA_ARCHITECTURE"
111     export TINA_OS="IRIX"
112     ;;
113 esac
114 
115 export TINA_SRC=$TINA_BASE_DIR/src
116 export TINA_INCLUDEDIR=$TINA_BASE_DIR/include
117 export TINA_HELPDIR=$TINA_BASE_DIR/doc/help
118 
119 alias ntw="$TINA_BASE_DIR/util/ntw"
120 alias tmu="$TINA_BASE_DIR/perltk/tmu"
121 alias tmufmri="$TINA_BASE_DIR/perltk/tmu  $TINA_BASE_DIR/perltk/fmri3.tmpl"
122 
123 alias cdtina="cd $TINA_SRC"

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.