# ===================================================================== # # 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). # # 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 = /tpc/save/guidance/prgms/exec #LOC = /u/Alison.Krautkramer/TPCPRD1/guidance/prgms/exec #LOC = /nhc/save/guidance/prgms/exec LOC = ../../exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = sbdd.x # executable names (full list) SRC = sbdd.f #----------------- #... 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 = ncepxlf90 #FCG = ncepxlf90 FC = ifort FCG = ifort # Fortran compiler options # verbose options (NO OPTIMIZATION) ##FFLAGS = -qsmp=noauto:noopt -qintsize=4 -qrealsize=8 -qfixed -g -qcheck -qextchk -qflag=I:E # quiet options (OPTIMIZATION LEVEL #2) ##FFLAGS = -O2 -q64 -qflag=I:E -qfixed -qintsize=4 -qrealsize=8 # quiet options (NO OPTIMIZATION) ##FFLAGS = -q64 -qfixed -qintsize=4 -qrealsize=8 # WCOSS FFLAGS = -g -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (sbdd.x) $(EXE): $(SRC) $(FC) $(FFLAGS) $(SRC) -o $(EXE) #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE)