# ===================================================================== # # Makefile for SHIPS intensity model - sbdd routine. # Written by F. Horsfall and M. DeMaria, May 2001 # Revised by C. Sisko, March 2003 # Revised by C. Sisko, July 2005 # Revised by A. Krautkramer for port to WCOSS, Nov 2012 # Revised by M. DeMaria to change LOC, Apr 2013 # # Version for the WCOSS (Tide and Gyre). # # make - compile the model # make install - moves the exectuables to the runtime directories. # make clean - remove executables and object files. # # ===================================================================== #-------------------- #... DEFINITIONS ... #-------------------- # copy command CP = cp # remove command RM = rm -f #-- operational location #LOC = /nhc/save/guidance/prgms/exec LOC = ../../exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = irdumpc.x # executable names (full list) SRC = irdumpc.f90 merc_4km.f90 #----------------- #... LIBRARIES ... #----------------- # dataio libs LIBS = -L../../lib -lguidanceio #---------------- #... INCLUDES ... #---------------- # dataio includes INCS = -I../../include #----------------------------------- #... COMPILER/LINKER DEFINITIONS ... #----------------------------------- # Fortran compiler/linker (FCG is for the GOES routine) FC = ifort FCG = ifort # WCOSS Fortran compiler options FFLAGS = -g -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (irdumpc.x) $(EXE): $(SRC) $(FC) $(FFLAGS) $(SRC) -o $(EXE) merc_4km.o: merc_4km.f90 $(FC) $(FFLAGS) -c merc_4km.f90 #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE)