include ../../adm/Mkinclude

TARGET = main

OBJS = \
	def_params.o\
	def_types.o\
	mod_io.o\
	mod_grid.o\
	mod_table.o\
	mod_regrid.o\
	mod_ext.o\
	main.o

all:
	$(MAKE) $(TARGET)
	@echo "Complete making $(TARGET)."

$(TARGET): $(OBJS) $(LIB)
	$(FC) $(FCLAGS) -o $@ $^

clean:
	$(RM) $(RMFLAGS) *.o *.mod $(TARGET)

.SUFFIXES:
.SUFFIXES: .o .f90


.f90.o:
	$(FC) $(FCFLAGS) -c $< -I$(LIBDIR)

%.o: %.mod
%.mod: %.f90
	$(MAKE) $(patsubst %.f90,%.o,%<)