/*
 * Local configuration file for libCLI.a & libCOM.a
 */

/* if you DO NOT want to use GNU readline in CLI, 
   *COMMENT OUT* the following line.
   Default: ON for SUN and DG and DEC (Ultrix and OSF1) */
#define CliUseReadline

/* if you want to turn on debug falgs, define here */
#define PassCDebugFlags

/* path to install binaries and libraries */
INSTALL_LIB_PATH = $(TOP)/$(EXT)

/* Architecture dependent definitions */

CDEBUGFLAGS = -g

#if defined(SunArchitecture)
FFLAGS = -g
#if (OSMajorVersion == 4)
LIBSYS = -L`echo /usr/lang/SC?.0` -lF77
#else
/*LIBSYS = -L/opt/SUNWspro/lib -lM77 -lF77 -lsunmath*/
FC = f95
#define HasF90
LIBSYS = -L/opt/SUNWspro/lib -lfsu -lfui -lf77compat -lsunmath
#endif
#endif

#if defined(UltrixArchitecture)
FFLAGS = -g
#endif

#if defined(DguxArchitecture)
FFLAGS = -g -vms
SYS_LIB = -ldl
LIBSYS = -lUfor -lfor -lutil -li -lots
#endif

#if defined(AlphaArchitecture)
FFLAGS = -g
LIBSYS = -lUfor -lfor -lFutil -lots
#endif

#if defined(HPArchitecture)
FFLAGS = -g +e +ppu +es
LIBSYS = -lm -ldld
#endif

#if defined(LinuxArchitecture)
CC = gcc
CCOPTIONS = -Wall
#define HasG77
FC = g77
FFLAGS = -g -Wall -fno-second-underscore -fno-f2c --pedantic
LIBSYS = -lg2c
#endif

#if defined(PpcDarwinArchitecture)
CC = gcc
#define HasG77
/*#define HasGfortran*/
#ifdef HasGfortran
FC = gfortran
FFLAGS = -g -Wall -fno-second-underscore -fno-f2c
LIBSYS = -lgfortran
INSTALL_LIB_PATH = $(TOP)/$(EXT)-$(FC)
#else
FC = g77
FFLAGS = -g -Wall -fno-second-underscore -fno-f2c
LIBSYS = -L/sw/lib -lg2c
#endif
INSTALLFLAGS = -c
#endif

#if defined(i386DarwinArchitecture)
CC = gcc
/*#define HasG77*/
/*#define HasIFORT*/
#define HasGfortran
/*#define HasG95*/
#if defined(HasIFORT)
FC = ifort
IFORT_LIB = /opt/intel/fc/9.1.030/lib/lib
FFLAGS = -g -w
LIBSYS = -ldl $(IFORT_LIB)ifport.a $(IFORT_LIB)ifcore.a $(IFORT_LIB)irc.a $(IFORT_LIB)irc_s.a $(IFORT_LIB)imf.a
INSTALL_LIB_PATH = $(TOP)/$(EXT)-$(FC)
#elif defined(HasGfortran)
FC = gfortran
FFLAGS = -g -Wall -fno-second-underscore -fno-f2c
LIBSYS = -lgfortran
INSTALL_LIB_PATH = $(TOP)/$(EXT)-$(FC)
#elif defined(HasG95)
FC = g95
FFLAGS = -g -Wall -fno-second-underscore
LIBSYS = -L/sw/lib -lf95
INSTALL_LIB_PATH = $(TOP)/$(EXT)-$(FC)
#else	/* default g77 */
FC = g77
FFLAGS = -g -O -Wall -fno-second-underscore -fno-f2c	/* optimization required for g77 bug */
LIBSYS = -L/sw/lib -lg2c
INSTALL_LIB_PATH = $(TOP)/$(EXT)-$(FC)
#endif
INSTALLFLAGS = -c
#endif

#if defined(cygwinArchitecture)
CC = gcc
CCOPTIONS = -Wall
FC = g77
#define HasG77
FFLAGS = -g -Wall -fno-second-underscore -fno-f2c
LIBSYS = -lg2c
#endif
