# ===================================================================== # # Makefile for SHIPS intensity model - ntrack routine. # Written by F. Horsfall and M. DeMaria, May 2001 # C. Sisko, March 2003 # C. Sisko, July 2005 # A. Krautkramer, Nov 2012 # M. DeMaria, Apr 2013 # # Version for the WCOSS. # # 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 = /u/Alison.Krautkramer/TPCPRD1/guidance/prgms/exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = ntrack.x # source names (full list) SRC = ntrack.f #----------------- #... LIBRARIES ... #----------------- # nwprod libs (for GRIB unpacking) 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 -qsuppress=1514-008 FFLAGS = -g -align all #------------------------------------- #... 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)