# ===================================================================== # # Makefile for SHIPS intensity model - lsdiag routine. # Written by F. Horsfall and M. DeMaria, May 2001 # Revised by C. Sisko, March 2003 # Revised by C. Sisko, July 2005 # Revised by M. DeMaria, Apr 2013 for WCOSS # # # Version for the IBM CCS (BLUE/WHITE). # # 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 (executables) LOC = /nhc/save/guidance/prgms/exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = lsdiag.x # source names (full list) SRC = lsdiag.f #----------------- #... LIBRARIES ... #----------------- # nwprod libs (for GRIB unpacking) LIBS = -L../../lib -lguidanceio #LIBS = #---------------- #... 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 -qsuppress=1514-022 FFLAGS = -align all -check #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (ntrack.x) $(EXE):$(SRC) $(FC) $(FFLAGS) $(SRC) $(LIBS) $(INCS) -o $(EXE) #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE)