next up previous contents
Next: Parameter settings Up: Building OASES Package Previous: Building OASES Package

Compiler Definitions

The compiler options are set in the master makefile Makefile in the OASES root directory. Hosts not supported may by added by including in Makefile a block with the compiler/linker definitions, e.g. for a HOSTTYPE host-type ,

############################################################
#
# host-type Workstations
#
############################################################
#
# Compiler flags
#
# Fortran statement
FC.host-type =	f77
# CC Flags
CFLAGS.host-type =
# Linker/loader flags 
LFLAGS.host-type =
# ranlib definition 
RANLIB.host-type =	ranlib
# Additional run-time libraries
LIB_MISC.host-type = 	
# Run-time library emulation
MISC.host-type = 
#

The default works on most platforms, but for LINUX some changes may be necessary, depending on which compiler you are using. For example, if you use the Absoft FORTRAN compiler on a Linux box (HOSTTYPE = i386-linux), then the Linux header in Makefile should look as follows:

############################################################
#
# PC HARDWARE RUNNING LINUX 
#
############################################################
#
# Compiler flags
#
#
# For the ABSOFT FORTRAN compiler, un-comment the following
# lines:
#
FC.i386-linux =	f77  -f -s -N2 -N9 -N51
LIB_MISC.i386-linux = -lV77 -lU77
MISC.i386-linux = 
#
# For the standard F2C FORTRAN compiler, un-comment the following
# lines:
#
# FC.i386-linux =		fort77
# LIB_MISC.i386-linux = 	$(LIBDIR)/libsysemu.a
# MISC.i386-linux = misc.done
#
CFLAGS.i386-linux = -I/usr/X11R6/include 
LFLAGS.i386-linux = -L/usr/X11R6/lib 
RANLIB.i386-linux =	ranlib

After performing the changes, set the default directory to the OASES root directory, and compile and link by issuing the command:

     make all



henrik schmidt
1999-08-25