/*
 *	Description:	This file contains the configuration for a
 *                      gfortran/gcc build on a *32 bit* Intel Mac system.
 *
 *                      If you have Mac OS 10.6 or later, you may have
 *                      a 64-bit system, and hence you should copy
 *                      Darwin_Intel.64 over this file.
 *
 *                      You may need to modify it to change or include
 *                      options.
 *
 *                      If you want to use a different Fortran compiler
 *                      like g95 or ifort, see the files 
 *                      "Darwin_Intel.g95" or "Darwin_Intel.ifort" in
 *                      this directory for help in modifying this file.
 *
 *                       Note: if the build has trouble finding the
 *                       "gfortran" library, then you may need to modify
 *                       the "CtoFLibraries" line below and include a "-L"
 *                       path to help it. For example:
 *
 *     #define CtoFLibraries  -L/usr/local/lib -lgfortran -lquadmath
 *     or
 *     #define CtoFLibraries  /usr/local/lib/libgfortran.a /usr/local/lib/libquadmath.a
 *
 *                       You'll need to change "/usr/local/lib" to
 *                       whatever directory contains "libgfortran.so".
 *
 *			 The references to the "User" macros below is for building the
 *                       ncargcc, ncargf90, nhlcc, etc, scripts.  We don't want the
 *                       development stuff (like the CtoFLibraries) jammed into those
 *                       scripts, like "/usr/local/lib/libcairo.a"; instead, we want
 *                       clean paths like "-lcairo".
 */
#define HdfDefines  -DDARWIN
#define StdDefines  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -D_DARWIN_C_SOURCE
#define ByteSwapped
#define Cstatic 
#define Cdynamic 
#define CppCommand '/usr/bin/cpp -traditional'
#define CCompiler   gcc
#define CxxCompiler   g++
#define FCompiler   gfortran
#define CcOptions      -ansi -fPIC -m64 -Wall -fopenmp -std=c99
#define FcOptions      -fPIC -fno-range-check  -m64 -Wall -fopenmp
#define CtoFLibraries      -lgfortran -lquadmath
#define CtoFLibrariesUser  -lgfortran -lquadmath
#define XToolLibrary    -lXt -lSM -lICE
#define BuildShared NO
#define XLibrary -lXpm -lX11 -lXext

#define LibSearchUser    -L/opt/X11/lib
#define IncSearchUser    -I/opt/X11/include

#define ArchRecLibSearch    -L/opt/X11/lib
#define ArchRecIncSearch    -I/opt/X11/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
