# MAKEFILE for firstguess
#
# Function: builds the executable rtma_firstguess.exe  
#

# Define the fortran compiler and options

GSIDIR=../../..

FC=ifort
FFLAGS=-nofixed  -convert big_endian
# FC=pgf90
# FFLAGS= -Mfree -byteswapio

LDFLAGS =
LIBS = -L${GSIDIR}/lib -lw3_i4r8

PROG = rtma_firstguess.exe

OBJS = kinds.o constants.o  generalized_transf.o blendwind.o \
       domain_dims.o process_allrjlists.o firstguess.o 

# clear out all suffixes
.SUFFIXES:
# list only those we use
.SUFFIXES: .o .f .f90

.f.o :
	${FC} ${FFLAGS} -c $<
.f90.o:
	${FC} -c $<

all: $(PROG)

$(PROG): ${OBJS} 
	${FC} -o $@ ${LDFLAGS} ${OBJS} ${LIBS}

clean:
	/bin/rm -f *.o *.mod $(PROG)



