APPENDIX I		Compilation of ODU_therm.f on various Unix platforms
			(Makefile utility)



	A compilation batch file (Makefile) is written for easy porting of modified ODU_therm.f 
and ODU_com.f Fortran 77 source codes to various Unix platforms.  To use this Makefile, you 
need

	1) ANSI Fortran 77 compiler and linker (f77 and ld), and
	2) make utility in /usr/local/bin or /usr/bin, accessible by public.

	To compile source codes to build ODU_therm binary executable, first put all source 
codes (ODU_therm.f and ODU_com.f) and following Makefile in the same directory, then 
type make $1 at the system prompt where $1 is your shell type.  If youre using Bourne shell 
or its variants which includes sh, ksh, bash, and zsh, type $ make B.  If youre using C shell or 
its variants which includes csh, and tcsh, type $ make C.  For finding out which shell is your 
shell, consult with your system administrator.

	Once binary executable is created successfully, then execute the binary to simulated 
THERM program.  Substantial modifications on program I/O stream were made to execute 
THERM program in interactive mode.  Type appropriate input and output datafile names at 
the beginning of THERM execution.  For input datafile elements and format requirements, 
please see APPENDIX II.


# ------------------------------------------------------------
# Makefile for odu_therm.f and odu_com.f
#
# edit [target] and [err] before compilation
# ------------------------------------------------------------
# f77 compilation & link flags
#
# -w		Suppress compiler warning messages
# -misalign	Allow proper loads and stores of misaligned data
#		(due to lumped variable sharing in COMMON block in odu_com.f.
#			Cannot be changed due to original program structure)
# -e		Recognize extended (132 character) source lines
# -time		Report the execution time for each compiler pass
# -v		Verbose mode - report name of each invoked compiler pass
# -o [target]	Set name of output file as [target]
# ------------------------------------------------------------
# error (pass stdout and stderr from f77 to error)
#
# -n		Do not change files, send all diagnostics to the standard output
# -s		Print out statistics regarding error categorization
# -S		Display the errors in the standard output as they are produced
# [err]		Error logfile
# ------------------------------------------------------------
# If youre receiving compilation errors, try reduce compilation
# and debugging flags.  Suggested minimum flags are
#
# $ f77 -misalign -e -o [target] odu_therm.f
#
# ------------------------------------------------------------
#
B:
# ------------------------------------------------------------
# use following syntax when you compile using Bourne shell or 
# its variants which includes sh, ksh, bash, and zsh
#
# <usage> 
# $ f77 -w -misalign -e -time -v -o [target] odu_therm.f 2>&1 | error -n -s -S > [err]
#
# where
#       [target] = name of binary executable you want to build
#       [err] = name of error log for the compilation
# ------------------------------------------------------------
#
  clear
  f77 -w -misalign -e -time -v -o [target] odu_therm.f 2>&1 | error -n -s -S > [err]
  echo
  ls -al 
#
# ------------------------------------------------------------
#
C:
# ------------------------------------------------------------
# use following syntax when you compile using C shell or 
# its variants which includes csh, and tcsh
#
# <usage> 
# $ f77 -misalign -e -time -v -o [target] odu_therm.f |& error -n -s -S > [err]
#
# where
#       [target] = name of binary executable you want to build
#       [err] = name of error log for the compilation
# ------------------------------------------------------------
#
        f77 -misalign -e -time -v -o [target] odu_therm.f |& error -n -s -S >  [err]
clean:
# ------------------------------------------------------------
#
# Good housekeep
#
# ------------------------------------------------------------
        rm R1PLT04 R1PLT12 PLTWC R1PLT11
        rm t_error
        ls








Compilation of ODU_therm.f on various Unix platforms	APPENDIX   I
(Makefile utility)	1


