#------------------------------------------------------------------------- # Makefile # # This is the Makefile for the ocean utilities used by the SHIPS/LGEM/RII models. # Created: 10/31/2016 M. DeMaria - Code consolidation for WCOSS Cray migration # Modified: 08/21/2021 S. Stevenson - Updated for WCOSS2 Cray migration # Modified: 01/10/2024 R. Zelinsky - Added DEBUG targets #------------------------------------------------------------------------- SRCS = getgsst.f rysst.f rsstclim.f ncodaclim.f90 ohcparam2.f OBJS = getgsst.o rysst.o rsstclim.o ncodaclim.o ohcparam2.o FC = ftn DEBUGFLAGS = -g ifeq ($(FC), ftn) FFLAGS = -g -align all -w DEBUG = -ftrapuv -check_all -traceback -g else FFLAGS = DEBUG = endif TARGET = liboceanutils.a INCS = -I../../../include all: $(TARGET) $(TARGET): $(OBJS) ar vru $(TARGET) $(OBJS) ranlib $(TARGET) getgsst.o: getgsst.f $(FC) -c $(FFLAGS) getgsst.f rysst.o: rysst.f $(FC) -c $(FFLAGS) rysst.f rsstclim.o: rsstclim.f $(FC) -c $(FFLAGS) rsstclim.f ncodaclim.o: ncodaclim.f90 $(FC) -c $(FFLAGS) ncodaclim.f90 ohcparam2.o: ohcparam2.f $(FC) -c $(FFLAGS) ohcparam2.f debug : FFLAGS += $(DEBUG) debug : all clean: rm -f $(OBJS) $(TARGET) install: cp -f $(TARGET) ../../../lib