#############################################################################
#
# MODULE:   	Grass Compilation
# AUTHOR(S):	Original author unknown - probably CERL
#		Markus Neteler - Germany/Italy - neteler@itc.it
#   	    	Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
#   	    	Huidae Cho - Korea - grass4u@gmail.com
#   	    	Eric G. Miller - egm2@jps.net
# PURPOSE:  	The source file for this Makefile is in src/CMD/head/head.in.
#		It is the top part of a file called make.rules which is used
#		for compiling all GRASS modules. This part of the file provides
#		make variables that are dependent on the results of the
#		configure script.
# COPYRIGHT:    (C) 2000 by the GRASS Development Team
#
#               This program is free software under the GNU General Public
#   	    	License (>=v2). Read the file COPYING that comes with GRASS
#   	    	for details.
#
#############################################################################

############################## Make Variables ###############################

CC                  = @CC@
CXX                 = @CXX@
LEX                 = @LEX@
YACC                = @YACC@
PERL                = @PERL@
AR                  = @AR@
RANLIB              = @RANLIB@
MKDIR               = mkdir -p
CHMOD               = chmod
INSTALL             = @INSTALL@ 
INSTALL_DATA        = @INSTALL_DATA@

prefix              = @prefix@
exec_prefix         = @exec_prefix@
ARCH                = @host@
UNIX_BIN            = @BINDIR@
INST_DIR            = @INSTDIR@

GRASS_HOME          = @GRASS_HOME@
RUN_GISBASE         = @GISBASE@

GRASS_VERSION_MAJOR = @GRASS_VERSION_MAJOR@
GRASS_VERSION_MINOR = @GRASS_VERSION_MINOR@
GRASS_VERSION_RELEASE = @GRASS_VERSION_RELEASE@
GRASS_VERSION_DATE  = @GRASS_VERSION_DATE@
GRASS_VERSION_SVN   = @GRASS_VERSION_SVN@

STRIPFLAG           = @STRIPFLAG@
LD_SEARCH_FLAGS     = @LD_SEARCH_FLAGS@
LD_LIBRARY_PATH_VAR = @LD_LIBRARY_PATH_VAR@

#generate static (ST) or shared (SH)
GRASS_LIBRARY_TYPE  = @GRASS_LIBRARY_TYPE@

#static libs:
STLIB_LD            = @STLIB_LD@
STLIB_PREFIX        = lib
STLIB_SUFFIX        = @STLIB_SUFFIX@

#shared libs
SHLIB_PREFIX        = lib
SHLIB_LD            = @SHLIB_LD@
SHLIB_LDFLAGS       = @SHLIB_LD_FLAGS@
SHLIB_CFLAGS        = @SHLIB_CFLAGS@
SHLIB_SUFFIX        = @SHLIB_SUFFIX@
EXE                 = @EXEEXT@

DEFAULT_DATABASE    =
DEFAULT_LOCATION    =

CPPFLAGS            = @CPPFLAGS@
CFLAGS              = @CFLAGS@
CXXFLAGS            = @CXXFLAGS@
INCLUDE_DIRS        = @INCLUDE_DIRS@
LINK_FLAGS          = @LDFLAGS@

DLLIB               = @DLLIB@
XCFLAGS             = @X_CFLAGS@
XLIBPATH            = @X_LIBS@
XLIB                = @X_PRE_LIBS@ @XLIB@
XEXTRALIBS          = @X_EXTRA_LIBS@
USE_X11             = @USE_X11@

MATHLIB             = @MATHLIB@ 
ICONVLIB            = @ICONVLIB@
INTLLIB             = @INTLLIB@
SOCKLIB             = @SOCKLIB@

#ZLIB:
ZLIB                = @ZLIB@
ZLIBINCPATH         = @ZLIBINCPATH@
ZLIBLIBPATH         = @ZLIBLIBPATH@

#BZIP2:
BZLIB                = @BZLIB@
BZLIBINCPATH         = @BZLIBINCPATH@
BZLIBLIBPATH         = @BZLIBLIBPATH@

DBMIEXTRALIB        = @DBMIEXTRALIB@

#readline
READLINEINCPATH     = @READLINEINCPATH@
READLINELIBPATH     = @READLINELIBPATH@
READLINELIB         = @READLINELIB@
HISTORYLIB          = @HISTORYLIB@

#PostgreSQL:
PQINCPATH           = @PQINCPATH@
PQLIBPATH           = @PQLIBPATH@
PQLIB               = @PQLIB@
USE_POSTGRES        = @USE_POSTGRES@

#MySQL:
MYSQLINCPATH        = @MYSQLINCPATH@
MYSQLLIBPATH        = @MYSQLLIBPATH@
MYSQLLIB            = @MYSQLLIB@
MYSQLDLIB           = @MYSQLDLIB@

#SQLite:
SQLITEINCPATH       = @SQLITEINCPATH@
SQLITELIBPATH       = @SQLITELIBPATH@
SQLITELIB           = @SQLITELIB@

#ODBC:
ODBCINC             = @ODBCINC@
ODBCLIB             = @ODBCLIB@

#Image formats:
PNGINC              = @PNGINC@
PNGLIB              = @PNGLIB@
USE_PNG             = @USE_PNG@

TIFFINCPATH         = @TIFF_INCLUDE_DIRS@
TIFFLIBPATH         = @TIFF_LIBRARY_DIRS@
TIFFLIB             = @TIFFLIB@

#openGL files for NVIZ/r3.showdspf
OPENGLINC           = @OPENGLINC@
OPENGLLIB           = @OPENGLLIB@
OPENGLULIB          = @OPENGLULIB@
OPENGL_X11          = @OPENGL_X11@
OPENGL_AQUA         = @OPENGL_AQUA@
OPENGL_WINDOWS      = @OPENGL_WINDOWS@
USE_OPENGL          = @USE_OPENGL@

#FFTW:
FFTWINC             = @FFTWINC@
FFTWLIB             = @FFTWLIB@

#LAPACK/BLAS stuff for gmath lib:
BLASLIB             = @BLASLIB@
BLASINC             = @BLASINC@
LAPACKLIB           = @LAPACKLIB@
LAPACKINC           = @LAPACKINC@

#GDAL/OGR
GDALLIBS            = @GDAL_LIBS@
GDALCFLAGS          = @GDAL_CFLAGS@
USE_GDAL            = @USE_GDAL@
USE_OGR             = @USE_OGR@

#NetCDF
NETCDFLIBS          = @NETCDF_LIBS@
NETCDFCFLAGS        = @NETCDF_CFLAGS@    
USE_NETCDF          = @USE_NETCDF@

#LAS LiDAR through libLAS
LASLIBS             = @LIBLAS_LIBS@
LASCFLAGS           = @LIBLAS_CFLAGS@
LASINC              = @LIBLAS_INC@
USE_LIBLAS          = @USE_LIBLAS@

#LAS LiDAR through PDAL
PDALLIBS             = @PDAL_LIBS@
PDALCPPFLAGS         = @PDAL_CPPFLAGS@
PDALINC              = @PDAL_INC@
USE_PDAL             = @USE_PDAL@

#GEOS
GEOSLIBS            = @GEOS_LIBS@
GEOSCFLAGS          = @GEOS_CFLAGS@
USE_GEOS            = @USE_GEOS@

#FreeType:
FTINC               = @FTINC@
FTLIB               = @FTLIB@

#PROJ.4:
PROJINC             = @PROJINC@ $(GDALCFLAGS)
PROJLIB             = @PROJLIB@
NAD2BIN             = @NAD2BIN@
PROJSHARE           = @PROJSHARE@

#OPENDWG:
OPENDWGINCPATH      = @OPENDWGINCPATH@
OPENDWGLIBPATH      = @OPENDWGLIBPATH@
OPENDWGLIB          = @OPENDWGLIB@
USE_OPENDWG         = @USE_OPENDWG@

#cairo
CAIROINC                  = @CAIROINC@
CAIROLIB                  = @CAIROLIB@
USE_CAIRO                 = @USE_CAIRO@
CAIRO_HAS_XRENDER         = @CAIRO_HAS_XRENDER@
CAIRO_HAS_XRENDER_SURFACE = @CAIRO_HAS_XRENDER_SURFACE@

#Python
PYTHON              = python

#regex
REGEXINCPATH        = @REGEXINCPATH@
REGEXLIBPATH        = @REGEXLIBPATH@
REGEXLIB            = @REGEXLIB@
USE_REGEX           = @USE_REGEX@

#pthreads
PTHREADINCPATH      = @PTHREADINCPATH@
PTHREADLIBPATH      = @PTHREADLIBPATH@
PTHREADLIB          = @PTHREADLIB@
USE_PTHREAD         = @USE_PTHREAD@

#OpenMP
OMPINCPATH          = @OMPINCPATH@
OMPLIBPATH          = @OMPLIBPATH@
OMPLIB              = @OMPLIB@
OMPCFLAGS           = @OMPCFLAGS@
USE_OPENMP          = @USE_OPENMP@

#OpenCL
OCLINCPATH          = @OCLINCPATH@
OCLLIBPATH          = @OCLLIBPATH@
OCLLIB              = @OCLLIB@
USE_OPENCL          = @USE_OPENCL@

#i18N
HAVE_NLS            = @HAVE_NLS@

#Large File Support (LFS)
USE_LARGEFILES      = @USE_LARGEFILES@
LFS_CFLAGS          = @LFS_CFLAGS@

#BSD sockets
HAVE_SOCKET         = @HAVE_SOCKET@

MINGW		    = @MINGW32@
MACOSX_APP	    = @MACOSX_APP@
MACOSX_ARCHS        = @MACOSX_ARCHS@
MACOSX_SDK          = @MACOSX_SDK@

# Cross compilation
CROSS_COMPILING     = @CROSS_COMPILING@ 
