/*
 *  Description:    This file contains all the directives needed to
 *                  tell ymake how to build NCAR Graphics on a FreeBSD
 *                  system using GNU compilers. It hasn't been updated
 *                  in awhile.
 *
 *                  You may need to modify it to change or include
 *                  options, especially for the "CtoFLibraries" line
 *                  and Compiler lines.
 */

#define    HdfDefines  -DFreeBSD
#define    StdDefines  -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
#define    ByteSwapped
#define    Cstatic
#define    Cdynamic
#define    CppCommand  '/usr/bin/cpp -traditional'
#define    CCompiler   cc
#define    FCompiler   f77
#define    CtoFLibraries   -lg2c -lgcc -lm
#define    CcOptions       -ansi
#define    XToolLibrary    -lXt -lSM -lICE
#define    BuildShared NO
#define    XLibrary    -lX11 -lXext

#define    ArchRecLibSearch    -L/usr/X11R6/lib -L/usr/local/lib
#define    ArchRecIncSearch    -I/usr/X11R6/include -I/usr/local/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 /* MakeDir */
