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

Linux Cross Reference
Tina4/csh.tina

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

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