#------------------------------------------------------------------------------- # $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 = /bin/sh # Installation Directories: rootdir = /mnt/gmirror/ports/graphics/gmt/work/GMT3.4.1 prefix = /usr/local/gmt exec_prefix = ${prefix} srcdir = /mnt/gmirror/ports/graphics/gmt/work/GMT3.4.1/src bindir = ${exec_prefix}/bin libdir = ${exec_prefix}/lib includedir = ${prefix}/include mandir = ${prefix}/man datadir = ${prefix}/share wwwdir = ${prefix}/www mansection = l wrapbindir = /usr/local/bin wrapmandir = /usr/local/man # Compiler, if $CC not set in environment CC = cc # Link flags if $LDFLAGS is not set in environment LDFLAGS = -Wl,-x # Preprocessing: CPP = cc -E CPPFLAGS = $(INCLUDES) $(DEFINES) #------------------------------------------------------------------------------- # Math library specification # (Will most of the time be -lm, on Solaris -lsunmath -lm) #------------------------------------------------------------------------------- # LIBS = # #--------------------------------------------------------------- # Misc. Standard Utilities: #--------------------------------------------------------------- INSTALL = /usr/bin/install -c -o root -g wheel AWK = gawk AS = as AR = ar RANLIB = ranlib CSH = csh LD = ld #--------------------------------------------------------------- # Misc. macros for Cygwin # Normally empty, EXE=.exe and WIN32=_WIN32 under Cygwin #--------------------------------------------------------------- # EXE = WIN32 = # #--------------------------------------------------------------- # Misc. macros for OS/2 with EMX support # Otherwise set to @: (which does nothing) #--------------------------------------------------------------- # 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 = -fno-common # #------------------------------------------------------------------------------- # 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 = -shared # #------------------------------------------------------------------------------- # Shared library file extension (.sl or .so, normally) # Solaris, Linux: so HP, IRIX: sl #------------------------------------------------------------------------------- # SL = so # #------------------------------------------------------------------------------- # 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_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 = # #------------------------------------------------------------------------------- # Select STATIC (Default) or SHARED libraries #------------------------------------------------------------------------------- # GMTLIB = $(SHARED_LIB)