# ===================================================================== # # Makefile for SHIPS intensity model - iships routine. # Written by F. Horsfall and M. DeMaria, May 2001 # Revised by C. Sisko, March 2003 # Revised by C. Sisko, July 2005 # Revised by C. Sisko, Dec 2006 # Revised by M. DeMaria, Jun 2012 for TCLIP model and code cleanup # Revised by M. DeMaria, Apr 2013 for 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 # target location for executables / scripts #-- operational location LOC = /nhc/save/guidance/prgms/exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = iships.x # source names (full list) SRC = iships_JPK_mods.f decay.f rapidga.f rapidge.f aland.f wland.f dtland.f fland.f PrSEFoNe.f etclass.f tclip.f rapid_aid.f dataio.f dtgutils.f erc_change_driver.f # objects OBJS = decay.o rapidga.o rapidge.o aland.o wland.o dtland.o fland.o PrSEFoNe.o etclass.o tclip.o rapid_aid.o dataio.o dtgutils.o erc_change_driver.f #----------------- #... LIBRARIES ... #----------------- # nwprod 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 ##FFLAGS = -qfixed -qsmp=noauto -qintsize=4 -qrealsize=8 -qsuppress=1515-019:1514-008 # 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 = -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (ilsin.x) $(EXE): iships.f $(OBJS) $(FC) $(FFLAGS) iships.f $(OBJS) $(LIBS) $(INCS) -o $(EXE) aland.o: aland.f $(FC) $(FFLAGS) -c aland.f wland.o: wland.f $(FC) $(FFLAGS) -c wland.f fland.o: fland.f $(FC) $(FFLAGS) -c fland.f dtland.o: dtland.f $(FC) $(FFLAGS) -c dtland.f decay.o: decay.f $(FC) $(FFLAGS) -c decay.f rapidga.o: rapidga.f $(FC) $(FFLAGS) -c rapidga.f rapidge.o: rapidge.f $(FC) $(FFLAGS) -c rapidge.f rapid_aid.o: rapid_aid.f $(FC) $(FFLAGS) -c rapid_aid.f dataio.o: dataio.f $(FC) $(FFLAGS) -c dataio.f dtgutils.o: dtgutils.f $(FC) $(FFLAGS) -c dtgutils.f PrSEFoNe.o: PrSEFoNe.f $(FC) $(FFLAGS) -c PrSEFoNe.f etclass.o: etclass.f $(FC) $(FFLAGS) -c etclass.f tclip.o: tclip.f $(FC) $(FFLAGS) -c tclip.f erc_change_driver.o: erc_change_driver.f $(FC) $(FFLAGS) -c erc_change_driver.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE) $(OBJS)