# ===================================================================== # # Makefile for SHIPS intensity model - ilsin 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, May 2012 to change location of exec directory # A. Krautkramer, Nov 2012 # Revised by M. DeMaria, Apr 2013 change LOC for WCOSS # Revised by M. DeMaria, Aug 2014 global version # Revised by M. DeMaria, Aug 2014 change for dev version # # 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 #-- bin location # ops location #LOC = /nhc/save/guidance/prgms/exec # development location #LOC = /nhc/save/guidance/prgms/src/ships/dev/bin LOC = ../../exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = ilsin.x # source names (full list) SRC = ilsin.f aland.f wland.f shland.f gbland.f tdiff.f rysst.f getvar.f \ rsstclim.f ohcparam2.f getgsst.f ncodaclim.f90 \ packsubs.f llintsp.f ilsin.f tadd.f jday.f jdayi.f # objects OBJS = aland.o wland.o shland.o gbland.o tdiff.o rysst.o getvar.o \ rsstclim.o ohcparam2.o getgsst.o ncodaclim.o \ packsubs.o llintsp.o tadd.o jday.o jdayi.o #----------------- #... LIBRARIES ... #----------------- # nwprod libs (for GRIB unpacking) LIBS = -L../../lib -lguidanceio #---------------- #... INCLUDES ... #---------------- # dataio includes INCS = -I../../include #----------------------------------- #... COMPILER/LINKER DEFINITIONS ... #----------------------------------- # Fortran compiler/linker FC = ifort # Fortran compiler options FFLAGS = -g -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (ilsin.x) $(EXE): ilsin.f $(OBJS) $(FC) $(FFLAGS) ilsin.f $(OBJS) $(LIBS) $(INCS) -o $(EXE) aland.o: aland.f $(FC) $(FFLAGS) -c aland.f wland.o: wland.f $(FC) $(FFLAGS) -c wland.f shland.o: shland.f $(FC) $(FFLAGS) -c shland.f gbland.o: gbland.f $(FC) $(FFLAGS) -c gbland.f tdiff.o: tdiff.f $(FC) $(FFLAGS) -c tdiff.f rysst.o: rysst.f $(FC) $(FFLAGS) -c rysst.f getvar.o: getvar.f $(FC) $(FFLAGS) -c getvar.f rsstclim.o: rsstclim.f $(FC) $(FFLAGS) -c rsstclim.f ohcparam2.o: ohcparam2.f $(FC) $(FFLAGS) -c ohcparam2.f getgsst.o: getgsst.f $(FC) $(FFLAGS) -c getgsst.f ncodaclim.o: ncodaclim.f90 $(FC) $(FFLAGS) -c ncodaclim.f90 packsubs.o: packsubs.f $(FC) $(FFLAGS) -c packsubs.f llintsp.o: llintsp.f $(FC) $(FFLAGS) -c llintsp.f tadd.o: tadd.f $(FC) $(FFLAGS) -c tadd.f jday.o: jday.f $(FC) $(FFLAGS) -c jday.f jdayi.o: jdayi.f $(FC) $(FFLAGS) -c jdayi.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE) $(OBJS)