#------------------------------------------------------------------------- # Makefile # # This is the Makefile for the land utilities used by the NHC guidance suite. # Created: 10/11/2016 M. DeMaria - Code consolidation for WCOSS Cray migration # 04/06/2020 S. Stevenson - Updated for new land routines # 08/21/2021 S. Stevenson - Updated for WCOSS2 Cray migration # 01/10/2024 R. Zelinsky - Added DEBUG targets #------------------------------------------------------------------------- SRCS = gdland_table.f90 gfland_table.f OBJS = gdland_table.o gfland_table.o FC = ftn DEBUGFLAGS = -g ifeq ($(FC), ftn) FFLAGS = -g -align all -w DEBUG = -ftrapuv -check_all -traceback -g else FFLAGS = DEBUG = endif TARGET = liblandutils.a INCS = -I../../../include all: $(TARGET) $(TARGET): $(OBJS) ar vru $(TARGET) $(OBJS) ranlib $(TARGET) gdland_table.o: gdland_table.f90 $(FC) -c $(FFLAGS) gdland_table.f90 gfland_table.o: gfland_table.f $(FC) -c $(FFLAGS) gfland_table.f debug : FFLAGS += $(DEBUG) debug : all clean: rm -f $(OBJS) $(TARGET) install: cp -f $(TARGET) ../../../lib