# 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/X1/MM5toGRIB ../../MM5toGRIB

MM5toGRIB: $(OBJS)
	$(FC) $(OFLAGS) -o $@ $(FFLAGS) $(OBJS) $(LIBDIR) $(LIBEMOS)

MM5toGRIB.o:
	$(FC) -c $(FFLAGS) MM5toGRIB.f90

interpol_lonlat.o:
	$(FC) -c $(FFLAGS) ../interpol_lonlat.f90

weightsa.o:
	$(FC) -c $(FFLAGS) ../weightsa.f90

clean:
	$(RM) $(RM_LIST)
	$(RM) ../../MM5toGRIB
