# makefile include for building CGNS code
# this file contains the options and libraries used for
# building and linking CGNS code, and is intended to be
# included in a user's Makefile from the installation

#-----------------------------------------------------------------------
# CGNS library build options. A 1 indicates that the library
# was built with that option, a 0 indicates without
# CGNS_DEBUG     = debug
# CGNS_LEGACY    = legacy code (prior to 3.0)
# CGNS_SCOPING   = scoping of enums
# CGNS_64BIT     = 64 bit support
# CGNS_FORTRAN   = Fortran interface
# CGNS_PARALLEL  = parallel I/O
# CGNS_BASESCOPE = Base scope for family and zone reference-to
#-----------------------------------------------------------------------

CGNS_DEBUG     = 0
CGNS_LEGACY    = 0
CGNS_SCOPING   = 0
CGNS_64BIT     = 1
CGNS_FORTRAN   = 0
CGNS_PARALLEL  = 0
CGNS_BASESCOPE = 0

#-----------------------------------------------------------------------
# CGNS_LIBDIR     - installation directory for CGNS library
# CGNS_INCLUDEDIR - installation directory for CGNS headers
#-----------------------------------------------------------------------

CGNS_LIBDIR     = /usr/local/lib
CGNS_INCLUDEDIR = /usr/local/include

#-----------------------------------------------------------------------
# CGNS_CC      - C compiler used to build library
# CGNS_CFLAGS  - compiler flags used to build library
# CGNS_LDFLAGS - any additional linking flags
#-----------------------------------------------------------------------

CGNS_CC      = /usr/obj/ports/CGNS-4.5.2/bin/cc
CGNS_CFLAGS  = -O2 -pipe -DNDEBUG  
CGNS_LDFLAGS =  

#-----------------------------------------------------------------------
# LIBCGNS - CGNS library name
#-----------------------------------------------------------------------

CGNS_LIB = $(CGNS_LIBDIR)/libcgns.a

#-----------------------------------------------------------------------
# CGNS_HDF5INC - path to HDF5 header files
# CGNS_HDF5LIB - HDF5 library
# CGNS_SZIPLIB - szip library (if needed)
# CGNS_ZLIBLIB - zlib library (if needed)
#-----------------------------------------------------------------------

CGNS_HDF5INC = 
CGNS_HDF5LIB = /usr/local/lib/libhdf5.so.8.0;/usr/local/lib/libsz.so.0.0;/usr/lib/libz.so.7.2;/usr/lib/libm.so.10.1
CGNS_SZIPLIB = 
CGNS_ZLIBLIB = 

#-----------------------------------------------------------------------
# CGNS_MPIINC  - path to MPI header files
# CGNS_MPILIBS - MPI libraries
#-----------------------------------------------------------------------

CGNS_MPIINC  = 
CGNS_MPILIBS = 

#-----------------------------------------------------------------------
# CGNS_LINKLIBS contains the list of libraries
#               with which a CGNS application needs to link
#-----------------------------------------------------------------------

CGNS_LINKLIBS = $(CGNS_LIB) $(CGNS_HDF5LIB) $(CGNS_SZIPLIB) \
	$(CGNS_ZLIBLIB) $(CGNS_MPILIBS) -lm

