1#############################################################################
2#
3# MODULE:   	Grass Compilation
4# AUTHOR(S):	Original author unknown - probably CERL
5#		Markus Neteler - Germany/Italy - neteler@itc.it
6#   	    	Justin Hickey - Thailand - jhickey@hpcc.nectec.or.th
7#   	    	Huidae Cho - Korea - grass4u@gmail.com
8#   	    	Eric G. Miller - egm2@jps.net
9# PURPOSE:  	The source file for this Makefile is in src/CMD/head/head.in.
10#		It is the top part of a file called make.rules which is used
11#		for compiling all GRASS modules. This part of the file provides
12#		make variables that are dependent on the results of the
13#		configure script.
14# COPYRIGHT:    (C) 2000 by the GRASS Development Team
15#
16#               This program is free software under the GNU General Public
17#   	    	License (>=v2). Read the file COPYING that comes with GRASS
18#   	    	for details.
19#
20#############################################################################
21
22############################## Make Variables ###############################
23
24CC                  = @CC@
25CXX                 = @CXX@
26LEX                 = @LEX@
27YACC                = @YACC@
28PERL                = @PERL@
29AR                  = @AR@
30RANLIB              = @RANLIB@
31MKDIR               = mkdir -p
32CHMOD               = chmod
33INSTALL             = @INSTALL@
34INSTALL_DATA        = @INSTALL_DATA@
35
36prefix              = @prefix@
37exec_prefix         = @exec_prefix@
38ARCH                = @host@
39UNIX_BIN            = @BINDIR@
40INST_DIR            = @INSTDIR@
41
42GRASS_HOME          = @GRASS_HOME@
43RUN_GISBASE         = @GISBASE@
44
45GRASS_VERSION_MAJOR = @GRASS_VERSION_MAJOR@
46GRASS_VERSION_MINOR = @GRASS_VERSION_MINOR@
47GRASS_VERSION_RELEASE = @GRASS_VERSION_RELEASE@
48GRASS_VERSION_DATE  = @GRASS_VERSION_DATE@
49GRASS_VERSION_GIT   = @GRASS_VERSION_GIT@
50
51STRIPFLAG           = @STRIPFLAG@
52LD_SEARCH_FLAGS     = @LD_SEARCH_FLAGS@
53LD_LIBRARY_PATH_VAR = @LD_LIBRARY_PATH_VAR@
54
55#generate static (ST) or shared (SH)
56GRASS_LIBRARY_TYPE  = @GRASS_LIBRARY_TYPE@
57
58#static libs:
59STLIB_LD            = @STLIB_LD@
60STLIB_PREFIX        = lib
61STLIB_SUFFIX        = @STLIB_SUFFIX@
62
63#shared libs
64SHLIB_PREFIX        = lib
65SHLIB_LD            = @SHLIB_LD@
66SHLIB_LDFLAGS       = @SHLIB_LD_FLAGS@
67SHLIB_CFLAGS        = @SHLIB_CFLAGS@
68SHLIB_SUFFIX        = @SHLIB_SUFFIX@
69EXE                 = @EXEEXT@
70
71DEFAULT_DATABASE    =
72DEFAULT_LOCATION    =
73
74CPPFLAGS            = @CPPFLAGS@
75CFLAGS              = @CFLAGS@
76CXXFLAGS            = @CXXFLAGS@
77INCLUDE_DIRS        = @INCLUDE_DIRS@
78LINK_FLAGS          = @LDFLAGS@
79
80DLLIB               = @DLLIB@
81XCFLAGS             = @X_CFLAGS@
82XLIBPATH            = @X_LIBS@
83XLIB                = @X_PRE_LIBS@ @XLIB@
84XEXTRALIBS          = @X_EXTRA_LIBS@
85USE_X11             = @USE_X11@
86
87MATHLIB             = @MATHLIB@
88ICONVLIB            = @ICONVLIB@
89INTLLIB             = @INTLLIB@
90SOCKLIB             = @SOCKLIB@
91
92#ZLIB:
93ZLIB                = @ZLIB@
94ZLIBINCPATH         = @ZLIBINCPATH@
95ZLIBLIBPATH         = @ZLIBLIBPATH@
96
97#BZIP2:
98BZIP2LIB            = @BZIP2LIB@
99BZIP2INCPATH        = @BZIP2INCPATH@
100BZIP2LIBPATH        = @BZIP2LIBPATH@
101
102#ZSTD:
103ZSTDLIB             = @ZSTDLIB@
104ZSTDINCPATH         = @ZSTDINCPATH@
105ZSTDLIBPATH         = @ZSTDLIBPATH@
106
107DBMIEXTRALIB        = @DBMIEXTRALIB@
108
109#readline
110READLINEINCPATH     = @READLINEINCPATH@
111READLINELIBPATH     = @READLINELIBPATH@
112READLINELIB         = @READLINELIB@
113HISTORYLIB          = @HISTORYLIB@
114
115#PostgreSQL:
116PQINCPATH           = @PQINCPATH@
117PQLIBPATH           = @PQLIBPATH@
118PQLIB               = @PQLIB@
119USE_POSTGRES        = @USE_POSTGRES@
120
121#MySQL:
122MYSQLINCPATH        = @MYSQLINCPATH@
123MYSQLLIBPATH        = @MYSQLLIBPATH@
124MYSQLLIB            = @MYSQLLIB@
125MYSQLDLIB           = @MYSQLDLIB@
126
127#SQLite:
128SQLITEINCPATH       = @SQLITEINCPATH@
129SQLITELIBPATH       = @SQLITELIBPATH@
130SQLITELIB           = @SQLITELIB@
131
132#ODBC:
133ODBCINC             = @ODBCINC@
134ODBCLIB             = @ODBCLIB@
135
136#Image formats:
137PNGINC              = @PNGINC@
138PNGLIB              = @PNGLIB@
139USE_PNG             = @USE_PNG@
140
141TIFFINCPATH         = @TIFF_INCLUDE_DIRS@
142TIFFLIBPATH         = @TIFF_LIBRARY_DIRS@
143TIFFLIB             = @TIFFLIB@
144
145#openGL files for NVIZ/r3.showdspf
146OPENGLINC           = @OPENGLINC@
147OPENGLLIB           = @OPENGLLIB@
148OPENGLULIB          = @OPENGLULIB@
149OPENGL_X11          = @OPENGL_X11@
150OPENGL_AQUA         = @OPENGL_AQUA@
151OPENGL_WINDOWS      = @OPENGL_WINDOWS@
152USE_OPENGL          = @USE_OPENGL@
153
154#FFTW:
155FFTWINC             = @FFTWINC@
156FFTWLIB             = @FFTWLIB@
157
158#LAPACK/BLAS stuff for gmath lib:
159BLASLIB             = @BLASLIB@
160BLASINC             = @BLASINC@
161LAPACKLIB           = @LAPACKLIB@
162LAPACKINC           = @LAPACKINC@
163
164#GDAL/OGR
165GDALLIBS            = @GDAL_LIBS@
166GDALCFLAGS          = @GDAL_CFLAGS@
167USE_GDAL            = @USE_GDAL@
168USE_OGR             = @USE_OGR@
169
170#NetCDF
171NETCDFLIBS          = @NETCDF_LIBS@
172NETCDFCFLAGS        = @NETCDF_CFLAGS@
173USE_NETCDF          = @USE_NETCDF@
174
175#LAS LiDAR through libLAS
176LASLIBS             = @LIBLAS_LIBS@
177LASCFLAGS           = @LIBLAS_CFLAGS@
178LASINC              = @LIBLAS_INC@
179USE_LIBLAS          = @USE_LIBLAS@
180
181#LAS LiDAR through PDAL
182PDALLIBS             = @PDAL_LIBS@
183PDALCPPFLAGS         = @PDAL_CPPFLAGS@
184PDALINC              = @PDAL_INC@
185USE_PDAL             = @USE_PDAL@
186
187#GEOS
188GEOSLIBS            = @GEOS_LIBS@
189GEOSCFLAGS          = @GEOS_CFLAGS@
190USE_GEOS            = @USE_GEOS@
191
192#FreeType:
193FTINC               = @FTINC@
194FTLIB               = @FTLIB@
195
196#PROJ.4:
197PROJINC             = @PROJINC@
198PROJLIB             = @PROJLIB@
199PROJSHARE           = @PROJSHARE@
200
201#OPENDWG:
202OPENDWGINCPATH      = @OPENDWGINCPATH@
203OPENDWGLIBPATH      = @OPENDWGLIBPATH@
204OPENDWGLIB          = @OPENDWGLIB@
205USE_OPENDWG         = @USE_OPENDWG@
206
207#cairo
208CAIROINC                  = @CAIROINC@
209CAIROLIB                  = @CAIROLIB@
210USE_CAIRO                 = @USE_CAIRO@
211CAIRO_HAS_XRENDER         = @CAIRO_HAS_XRENDER@
212CAIRO_HAS_XRENDER_SURFACE = @CAIRO_HAS_XRENDER_SURFACE@
213
214#Python
215PYTHON              = python3.8
216
217#regex
218REGEXINCPATH        = @REGEXINCPATH@
219REGEXLIBPATH        = @REGEXLIBPATH@
220REGEXLIB            = @REGEXLIB@
221USE_REGEX           = @USE_REGEX@
222
223#pthreads
224PTHREADINCPATH      = @PTHREADINCPATH@
225PTHREADLIBPATH      = @PTHREADLIBPATH@
226PTHREADLIB          = @PTHREADLIB@
227USE_PTHREAD         = @USE_PTHREAD@
228
229#OpenMP
230OMPINCPATH          = @OMPINCPATH@
231OMPLIBPATH          = @OMPLIBPATH@
232OMPLIB              = @OMPLIB@
233OMPCFLAGS           = @OMPCFLAGS@
234USE_OPENMP          = @USE_OPENMP@
235
236#OpenCL
237OCLINCPATH          = @OCLINCPATH@
238OCLLIBPATH          = @OCLLIBPATH@
239OCLLIB              = @OCLLIB@
240USE_OPENCL          = @USE_OPENCL@
241
242#i18N
243HAVE_NLS            = @HAVE_NLS@
244
245#Large File Support (LFS)
246USE_LARGEFILES      = @USE_LARGEFILES@
247LFS_CFLAGS          = @LFS_CFLAGS@
248
249#BSD sockets
250HAVE_SOCKET         = @HAVE_SOCKET@
251
252MINGW		    = @MINGW32@
253MACOSX_APP	    = @MACOSX_APP@
254MACOSX_ARCHS        = @MACOSX_ARCHS@
255MACOSX_SDK          = @MACOSX_SDK@
256
257# Cross compilation
258CROSS_COMPILING     = @CROSS_COMPILING@
259