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.

87 lines
2.3 KiB

# Makefile template for SX cross compiler
#typical use with netCDF:
# mkmf -t -c"-Duse_libMPI -Duse_netCDF" path_names /opt/sx/netcdf/include
FC = sxmpif90
LD = sxmpif90
CC = sxmpic++
NETCDF = /SX/opt/netcdf
FFLAGS = -Wf"-A idbl4" -R2 -ts. -Chopt -I$(NETCDF)/include
LIST = -R2
# LIBS needs to be customized per site
LIBS = $(TOTALVIEW) -L$(NETCDF)/lib -lnetcdf
# you should never need to change any lines below.
# see the SX 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>.T create a CIF file
# make <file>.L create a compiler listing
# make <file>.o create an object file
# make <file>.s create an assembly listing
# make <file>.x create an executable file, assuming standalone
# source
# The macro TMPFILES is provided to slate files like the above for removal.
RM = rm -f
SHELL = /bin/csh
TMPFILES = *.L i.* *.s *.mod
.SUFFIXES: .F .F90 .L .T .f .f90 .h .o .s .x
$(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 $(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 -cif $*.F
$(CPP) $(CPPDEFS) $(CPPFLAGS) $*.F > $*.f
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -o $*.x $*.F *.o $(LDFLAGS)
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c $(LIST) $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -cif $*.F90
$(CPP) $(CPPDEFS) $(CPPFLAGS) $*.F90 > $*.f90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -c -S $*.F90
$(FC) $(CPPDEFS) $(CPPFLAGS) $(FFLAGS) -o $*.x $*.F90 *.o $(LDFLAGS)