#
# Makefile for TM5
#

# ------------------------------------------------
# compiler and flags
# ------------------------------------------------

# flags are written to include file by pycasso scripts:
include Makefile_flags


# ------------------------------------------------
# implicit rules
# ------------------------------------------------

# how to form object files from F90 source:
%.o: %.F90
	$(FC) -c -o $@ $(FFLAGS) $<
	@echo ' '

# how to form object files from f90 source:
%.o: %.f90
	$(FC) -c -o $@ $(FFLAGS) $<
	@echo ' '

# how to form object files from F source:
%.o: %.F
	$(F77) -c -o $@ $(FFLAGS) $<
	@echo ' '


# ------------------------------------------------
# explicit rules
# ------------------------------------------------

# some module could not be compile with optim flags on some machines:
mdf.o meteo.o tmm.o:
	$(FC) -c -o $@ $(FFLAGS_BASIC) $<
	@echo ' '


# ------------------------------------------------
# dependencies
# ------------------------------------------------

# dependencies are written to include file by pycasso scripts:
include Makefile_deps


# ------------------------------------------------
# end
# ------------------------------------------------

