# $Id: macros.make.def,v 1.3 1997/06/05 17:53:12 davis Exp $

# The purpose of this file is to contain common make(1) macros.
# It should be processed by every execution of that utility.


# POSIX shell.  Shouldn't be necessary -- but is under IRIX 5.3.
SHELL		= /bin/sh


# Installation Directories:
prefix		= /opt/netcdf
exec_prefix	= $(prefix)
INCDIR		= $(exec_prefix)/include
LIBDIR		= $(exec_prefix)/lib
BINDIR		= $(exec_prefix)/bin
MANDIR		= $(prefix)/man


# Preprocessing:
M4		= m4
M4FLAGS		= -B10000
CPP		= c89 -E
CPPFLAGS	= $(INCLUDES) $(DEFINES) @CPPFLAGS@
FPP		= 
FPPFLAGS	= $(CPPFLAGS)
CXXCPPFLAGS	= $(CPPFLAGS)


# Compilation:
CC		= c89
CXX		= CC
FC		= f77
CFLAGS		= -g
CXXFLAGS	= $(CFLAGS) @CXXFLAGS@
FFLAGS		= -g
CC_MAKEDEPEND	= :
COMPILE.c	= $(CC) -c $(CFLAGS) $(CPPFLAGS)
COMPILE.cxx	= $(CXX) -c $(CXXFLAGS) $(CXXCPPFLAGS)
COMPILE.f	= $(FC) -c $(FFLAGS)
# The following command isn't available on some systems; therefore, the
# `.F.o' rule is relatively complicated.
COMPILE.F	= $(COMPILE.f)


# Linking:
MATHLIB		=
FLIBS		=
LIBS		=
LINK.c		= $(CC) -o $@ $(CFLAGS) $(LDFLAGS)
LINK.cxx	= $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS)
LINK.F		= $(FC) -o $@ $(FFLAGS) $(LDFLAGS)
LINK.f		= $(FC) -o $@ $(FFLAGS) $(LDFLAGS)


# NetCDF files:
NCDUMP		= ncdump
NCGEN		= ncgen


# Manual pages:
WHATIS		=
# The following macro should be empty on systems that don't
# allow users to create their own manual-page indexes.
MAKEWHATIS_CMD	=


# Misc. Utilities:
AR		= ar
ARFLAGS		= cru	# NB: SunOS 4 doesn't like `-' option prefix
RANLIB		=
TARFLAGS	= -chf


# Dummy macros: used only as placeholders to silence GNU make.  They are
# redefined, as necessary, in subdirectory makefiles.
HEADER		= dummy_header
HEADER1		= dummy_header1
HEADER2		= dummy_header2
LIBRARY		= dummy_library.a
MANUAL		= dummy_manual
PROGRAM		= dummy_program


# Distribution macros:
FTPDIR		= /home/ftp/pub/$(PACKAGE)
FTPBINDIR	= 
VERSION		= dummy_version
