/*
 *  Description:    This file contains all the directives needed to
 *                  tell ymake how to build NCARG/NCL on a LINUX
 *                  system. 
 *
 *                  The default version of this file assumes you are
 *                  using the GNU compilers, gcc and gfortran.
 *
 *                  You may need to modify it to change or include
 *                  options. You can also look at the other LINUX* 
 *                  files in this directory for help on how to configure
 *                  this file.
 */

#define HdfDefines  -DLINUX
/*#define StdDefines  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped*/
/*#define ByteSwapped*/
#define StdDefines  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
#define Cstatic
#define Cdynamic
#define CppCommand '/usr/bin/cpp -traditional'
#define CCompiler   gcc
#define FCompiler   gfortran
#define CtoFLibraries   -lgfortran -lm
#define CcOptions      -ansi -fPIC -m64 -O2 -g  -mcpu=powerpc64
#define FcOptions      -fPIC -fno-second-underscore -fno-range-check -m64 -O2 -g  -mcpu=powerpc64
#define XToolLibrary    -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary      -lX11 -lXext
#define ExtraExportFlags -rdynamic

#define ArchRecLibSearch    -L/usr/X11R6/lib
#define ArchRecIncSearch    -I/usr/X11R6/include

FC = $(F77)

/*************** Redefine Macros from Rules ********************************/

/*
 * Macro:   MakeDir
 *
 * Description: This rule creates a directory - if a parent dir doesn't exist
 *      it attempts to create it.
 */
#ifndef MakeDir
#define MakeDir(dir)    @if (test ! -d dir); then ($(MKDIRHIER) dir); fi
#endif
