# Low-level Makefile for MM5toGRIB

SHELL=/bin/ksh

OBJS    =   MM5toGRIB.o interpol_lonlat.o weightsa.o
SRC     =   MM5toGRIB.f90 ../interpol_lonlat.f90 ../weightsa.f90

all:	MM5toGRIB
	$(RM) ../../MM5toGRIB
	$(LN) ./src/LINUX/MM5toGRIB ../../MM5toGRIB

MM5toGRIB: $(OBJS)
	$(FC) -o $@ $(OBJS) $(FFLAGS) $(LIBDIR) $(LIBEMOS)

MM5toGRIB.o:
	$(FC) $(FFLAGS) -c MM5toGRIB.f90

interpol_lonlat.o:
	$(FC) $(FFLAGS) -c ../interpol_lonlat.f90

weightsa.o:
	$(FC) $(FFLAGS) -c ../weightsa.f90

clean:
	$(RM) $(RM_LIST)
	$(RM) ../../MM5toGRIB
