#-------------------------------------------------------------------------------
#	$Id: makegmt.macros.in,v 1.21 2007/10/08 03:38:31 remko Exp $
#
#	Standard Makefile Macro Setup for GMT 4
#
# Edit this file only, NOT the makefile itself.
#---------------------------------------------------------------
# The purpose of this section is to contain common make macros
# that should be processed by every execution of that utility.
#---------------------------------------------------------------

# POSIX shell.  On some platforms it is not /bin/sh.
SHELL		= @SHELL@

# Installation Directories:
rootdir		= @rootdir@
prefix		= @prefix@
exec_prefix	= @exec_prefix@
srcdir		= @rootdir@/src
bindir		= $(DESTDIR)@bindir@
libdir		= $(DESTDIR)@libdir@
includedir	= $(DESTDIR)@includedir@
mandir		= $(DESTDIR)@mandir@
datarootdir	= $(DESTDIR)@datarootdir@
datadir		= $(DESTDIR)@datadir@
wwwdir		= $(DESTDIR)@wwwdir@
GMT_site	= @GMT_site@

# Compiler, if $CC not set in environment
CC		= @CC@

# Link flags if $LDFLAGS is not set in environment
LDFLAGS		= @LDFLAGS@

# Preprocessing:
CPP		= @CPP@
CPPFLAGS	= $(INCLUDES) $(DEFINES) @CPPFLAGS@

# X11 compiler flags and link flags
X_CFLAGS	= @X_CFLAGS@
X_LIBS		= @X_PRE_LIBS@ @X_LIBS@ -lXaw -lXt -lXmu -lXext -lX11 @X_EXTRA_LIBS@

# NetCDF link flags
CDF		= -L$(NETCDF)/lib -lnetcdf

# Define executables to be created from objects
PROGS		= $(PROGS_O:.o=@EXE@)
PROGSPS		= $(PROGSPS_O:.o=@EXE@)

#-------------------------------------------------------------------------------
#	Math library specification 
#	(Will most of the time be -lm, on Solaris -lsunmath -lm)
#-------------------------------------------------------------------------------
#
LIBS		= @LIBS@
#
#---------------------------------------------------------------
#	Misc. Standard Utilities
#---------------------------------------------------------------
#
INSTALL		= @INSTALL@
AWK		= @AWK@
AS		= @AS@
AR		= @AR@
RANLIB		= @RANLIB@
CSH		= @CSH@
LD		= @LD@
#
#---------------------------------------------------------------
#	Macros for Matlab (if available)
#---------------------------------------------------------------
#
MATLAB		= @MATLAB@
MATLAB_EXT	= @MATLAB_EXT@
MATLAB_MEX	= @MATLAB_MEX@
MATLAB_LIB	= @MATLAB_LIB@
#
#---------------------------------------------------------------
#	Misc. macros for Cygwin
#	Normally empty, EXE=.exe and WIN32=_WIN32 under Cygwin
#---------------------------------------------------------------
#
EXE		= @EXE@
WIN32		= @WIN32@
#
#---------------------------------------------------------------
#	Misc. macros for OS/2 with EMX support
#	Otherwise set to @: (which does nothing)
#---------------------------------------------------------------
#
COMPRESS	= @COMPRESS@
#
#---------------------------------------------------------------
#	Required path to netcdf (with lib & include)
#---------------------------------------------------------------
#
NETCDF		= @NETCDFHOME@
#
#---------------------------------------------------------------
#	Required path to GMT shared data (used as $GMT_SHAREDIR by users)
#---------------------------------------------------------------
#
GMT_SHARE_PATH	= @datadir@
#
#-------------------------------------------------------------------------------
#	Compiler switches (set a total of one only)
#-------------------------------------------------------------------------------
#
CC_OPT		= @CC_OPT@
#
#-------------------------------------------------------------------------------
# For your information, here are some CC_OPT options known to work on other systems:
#CC_OPT	= -O					# Generic
#CC_OPT	= -ieee_with_inexact -Olimit 1500	# Dec Alpha OSF
#CC_OPT	= -O -Olimit 1500			# Dec VMS Ultrix
#CC_OPT	= -mieee -O2				# Dec Alpha/Alpha PC Linux
#CC_OPT	= -Aa +Ofltacc +O1 +Olibcalls		# HPUX
#CC_OPT	= -Daux -O				# A/UX
#CC_OPT	= -O -pedantic				# Gnu gcc compiler
#CC_OPT	= -O -Xc		 		# Sun Solaris
#CC_OPT	= -O -w					# SGI IRIX
#CC_OPT	= -O2					# IBM AIX
# FYI, here are some LDFLAGS options known to work on other systems:
#LDFLAGS	= -s				# Static link ,strip executables
#LDFLAGS	= -s -Wl,+b,$(libdir) +z	# HPUX w/shared libs
#LDFLAGS	= -s -Wl,-rpath,$(libdir)	# Linux w/shared libs
#LDFLAGS	= -s -Wl,-rpath,$(libdir)	# SGI IRIX w/shared libs
#LDFLAGS	= -s -Wl,-rpath,$(libdir)	# Gnu gcc compiler w/shared libs
#LDFLAGS	= -s -Wl,-R$(libdir)		# Sun Solaris w/shared libs
#-------------------------------------------------------------------------------
#	Linker switch for building shared libraries
#	These are only made if GMTLIB is set to $(SHARED_LIB) below
#	SunOS: -G  HP-UX: -b  Linux,IRIX: -shared
#-------------------------------------------------------------------------------
#
LD_OPT		= @LD_OPT@
#
#-------------------------------------------------------------------------------
#	Shared library file extension (.sl or .so, normally) 
#	Solaris, Linux, IRIX: so	HP: sl		Mac OS X: dylib
#-------------------------------------------------------------------------------
#
SL		= @SL@
#
#-------------------------------------------------------------------------------
#	Set TRIANGLE_x = -DTRIANGLE_x to use Shewchuk's triangulation routine
#	where x = D and O.  Default is to leave these empty.
#-------------------------------------------------------------------------------
#
TRIANGLE_D	= @TRIANGLE_D@
TRIANGLE_O	= @TRIANGLE_O@
#
#-------------------------------------------------------------------------------
#	Set ALPHA_SINCOS_O = alpha-sincos.o under OSF1 on Dec Alphas to use an
#	assembler wrapper to call the alpha's funny sincos function correctly.
#-------------------------------------------------------------------------------
#
ALPHA_SINCOS_O	= @ALPHA_SINCOS_O@
#
#-------------------------------------------------------------------------------
#	Select STATIC (Default) or SHARED libraries
#-------------------------------------------------------------------------------
#
GMTLIB		= @GMTLIB@
#
#-------------------------------------------------------------------------------
#	Set the GMT Version number
#-------------------------------------------------------------------------------
#
VERSION		= @VERSION@
