#------------------------------------------------------------------------------- # $Id: makegmt.macros.in,v 1.2.4.1 2002/01/18 02:45:17 pwessel Exp $ # # Standard Makefile Macro Setup for GMT 3.4.1 # # 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 = @bindir@ libdir = @libdir@ includedir = @includedir@ mandir = @mandir@ datadir = @datadir@ wwwdir = @wwwdir@ mansection = @mansection@ wrapbindir = @wrapbindir@ wrapmandir = @wrapmandir@ # 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@ #------------------------------------------------------------------------------- # 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@ #--------------------------------------------------------------- # 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 home (used as $GMTHOME by users) #--------------------------------------------------------------- # GMT_DEFAULT_PATH = $(prefix) # #------------------------------------------------------------------------------- # 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 -ansi -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: so HP, IRIX: sl #------------------------------------------------------------------------------- # SL = @SL@ # #------------------------------------------------------------------------------- # Set TRIANGLE_x = -DTRIANGLE_x to use Shewchuck'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@