Modulefpreviousupnextcontents[BIG][Normal][small]
Next: References Up: Part IV: Appendices Prev: Print command: prf_f3d Contents


H Example of environment file:

 



Files .profile et .cshrc enable you to constitute your own environment when logging yourself onto your machine.

File modulef.csh is used in a C Shell environment. A source file of it can be produced in file .cshrc, belonging to all MODULEF users, enabling the users to obtain the MODULEF environment.

An example of file modulef.csh:

# Csh environment
# Example on HP/Apollo INRIA
#
# Assignment of the basis variables:
setenv MM apollo
setenv MR /udd2/modulef
setenv MV sta  

# Assignment of other variables for abreviation:
setenv mb $MR/ascii/com.util
setenv ms $MR/ascii/sta/s
setenv mo $MR/$MM/$MV/lib

set path = ($path $MR/$MM/com.util $MR/$MM/$MV/bin)

# Assignment  of variables for the compilation and linking:
# It is possible to have non-statisfied references during linking:
#
# F77        : compilation command for Fortran programs
# OPTION_F77 : Fortran compilation option 
# CC         : compilation command for c programs
# OPTION_CC  : c compilation option
# LINK       : link command
# LINKR      : link command with bit relocation
# STDLIB     : libraries to include when linking
# DEST       : optionto redirect the output file when linking
#
#
setenv F77 f77
setenv CC cc
setenv OPTION_F77 "-c -W0,-overlap,dd,dc,-indexl,-pic,-idir,$MR/ascii/$MV/s/include"
setenv OPTION_CC  '-c -W0,-indexl,-pic'
setenv LINK   'ld -A noallres -A alllooks -A allmarks -a -r'
setenv LINKR   'ld -r'
setenv STDLIB ''
setenv DEST   '-W0,-b,'

# Proposition for compilation and link commands on other machines
#  - RS6000  : 
# setenv F77 xlf     ;   setenv CC cc
# setenv OPTION_F77 "-c -I$MR/ascii/sta/s/include"
# setenv OPTION_CC  "-c -I$MR/ascii/sta/s/include"
# setenv LINK  'xlf'
# setenv LINKR  'ld -r'
# setenv STDLIB  '-lX11 -lXext'
# setenv DEST  '-o '
#
#  - silicon : 
# setenv F77 f77     ;   setenv CC cc
# setenv OPTION_F77 "-c -G 3 -col77 -I$MR/ascii/sta/s/include"
# setenv OPTION_CC  "-c -G 3 -I$MR/ascii/sta/s/include"
# setenv LINK  'f77 -G 3'
# setenv LINKR  'ld -r'
# setenv STDLIB  '-lgl -lfgl -ldgl -lX11'
# setenv DEST  '-o ' 
#
#  - sun     :
# setenv F77 f77     ;    setenv CC cc   
# setenv OPTION_F77 "-c -ansi -i4 -I$MR/ascii/sta/s/include"
# setenv OPTION_CC  "-c -I$MR/ascii/sta/s/include"
# setenv LINK  'f77 -Bstatic'
# (ou)  setenv LINK  'f77 -Bdynamic'
# setenv LINKR  'ld -r'
# setenv STDLIB  '-lsuntool -lsunwindow -lpixrect -lX11 '
# setenv DEST  '-o '


Modulefpreviousupnextcontents[BIG][Normal][small]
Next: References Up: Part IV: Appendices Prev: Print command: prf_f3d Contents