This is the MOM5 component integrated in the IOW earth-system model.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.7 KiB

# template for the pathscale compiler
# typical use with mkmf
# mkmf -t mkmf.template.pscale -c"-Duse_libMPI -Duse_netCDF" path_names /usr/local/include
# next two definitions are site-dependent, set by environment
FFLAGS_OPT = -O0 # -O2 -OPT:Ofast
FFLAGS_DEBUG = -g -trapuv $(VERBOSE)
FFLAGS = $(INCLUDE) -i4 -r8 -byteswapio -fno-second-underscore -OPT:IEEE_arith=2 $(FFLAGS_OPT) $(FFLAGS_DEBUG)
FC = ftn
CC = cc
# pathscale wants main program outside libraries, do
# setenv MAIN_PROGRAM coupler_main.o or something before make
#LDFLAGS = -byteswapio -lpathfortran -L$(NETCDF_ROOT)/lib -lnetcdf -L$(MPI_ROOT)/lib -lmpich
LDFLAGS = $(VERBOSE) -byteswapio -L$(NETCDF_ROOT)/lib -lnetcdf
# you should never need to change any lines below.
# see the MIPSPro F90 manual for more details on some of the file extensions
# discussed here.
# this makefile template recognizes fortran sourcefiles with extensions
# .f, .f90, .F, .F90. Given a sourcefile <file>.<ext>, where <ext> is one of
# the above, this provides a number of default actions:
# make <file>.opt create an optimization report
# make <file>.o create an object file
# make <file>.s create an assembly listing
# make <file>.x create an executable file, assuming standalone
# source
# make <file>.i create a preprocessed file (for .F)
# make <file>.i90 create a preprocessed file (for .F90)
# The macro TMPFILES is provided to slate files like the above for removal.
RM = rm -f
SHELL = /bin/csh -f
TMPFILES = .*.m *.B *.L *.i *.i90 *.l *.s *.mod *.opt
.SUFFIXES: .F .F90 .H .L .T .f .f90 .h .i .i90 .l .o .s .opt .x
$(FC) $(FFLAGS) -c -listing $*.f
$(FC) $(FFLAGS) -c -opt_report_level max -opt_report_phase all -opt_report_file $*.opt $*.f
$(FC) $(FFLAGS) -c $(LIST) $*.f
$(FC) $(FFLAGS) -c -cif $*.f
$(FC) $(FFLAGS) -c $*.f
$(FC) $(FFLAGS) -S $*.f
$(FC) $(FFLAGS) -o $*.x $*.f *.o $(LDFLAGS)
$(FC) $(FFLAGS) -c -listing $*.f90
$(FC) $(FFLAGS) -c -opt_report_level max -opt_report_phase all -opt_report_file $*.opt $*.f90
$(FC) $(FFLAGS) -c $(LIST) $*.f90
$(FC) $(FFLAGS) -c -cif $*.f90
$(FC) $(FFLAGS) -c $*.f90
$(FC) $(FFLAGS) -c -S $*.f90
$(FC) $(FFLAGS) -o $*.x $*.f90 *.o $(LDFLAGS)
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -listing $*.F
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -opt_report_level max -opt_report_phase all -opt_report_file $*.opt $*.F
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -cif $*.F
$(FC) $(CPPDEFS) $(CPPFLAGS) -EP $*.F > $*.f
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -o $*.x $*.F *.o $(LDFLAGS)
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -listing $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -opt_report_level max -opt_report_phase all -opt_report_file $*.opt $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c $(LIST) $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -cif $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) -EP $*.F90 > $*.f90
$(FC) $(CPPDEFS) $(CPPFLAGS) -P $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -S $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -o $*.x $*.F90 *.o $(LDFLAGS)