#-------------------------------------------------------------------------
#	Makefile definitions common to all of the decoders.
#-------------------------------------------------------------------------

#   Name of shell to use.
SHELL =		/bin/bash

#   Name of the FORTRAN compiler to use.
FC =		ftn

#   Name of the C compiler to use.
CC =		cc

#   Flags to the compilers.
INCFLAGS=	-I${DECOD_INCLUDE} -I${DECOD_UT_INC} ${INCLUDES}
FFLAGS =	-O2 -g -traceback ${INCFLAGS}	
CFLAGS =	-O2 -g -traceback ${INCFLAGS} -DUNDERSCORE \
		-DDVSTR='"'${DECODER}_v${VERSION}'"'

#   Flags to the loader.
LDFLAGS =	-O2 -nofor-main

#   Any extra loader flags needed by a specific decoder can be defined as
#   ${LDFLAGS_XT} within the actual makefile for that decoder, overriding
#   the null placeholder defined here.
LDFLAGS_XT =

#   Generate a list of object files for the decoder.
OBJS =		$(shell echo *.c *.f | sed 's/\.[cf]/.o/g')

#   List of libraries.
#
LIBS =		${DECOD_UT} \
		-L${OS_LIB} -lbridge -lcgemlib -lprmcnvlib -lgemlib

#   Any extra libraries needed by a specific decoder can be defined as
#   ${LIBS_XT} within the actual Makefile for that decoder, overriding
#   the null placeholder defined here.
LIBS_XT =

#   Most decoders use the latest operational version of the BUFR library
#   as defined here.  Any decoder which needs a special version of the
#   BUFR library will redefine ${DECOD_BUFR} within the actual Makefile
#   for that decoder, overriding the value defined here.
DECOD_BUFR =	${BUFR_LIB4}