# ===================================================================== # # 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 # Updated Aug 2014 for dev version # Updated Aug 2014 for global version, some clean up, # and use of local dataio.f instead of library 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 path #LOC = /nhc/save/guidance/prgms/exec # dev path #LOC = /nhc/save/guidance/prgms/src/ships/dev/bin LOC = ../../exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = ntrack.x # source names (full list) SRC = ntrack.f dataio.f writeaidlocal2.f # objects OBJS = dataio.o writeaidlocal2.o #----------------- #... LIBRARIES ... #----------------- # nwprod libs (for GRIB unpacking) LIBS = -L../../../../../lib -lguidanceio #---------------- #... INCLUDES ... #---------------- # dataio includes (library version) INCS = -I../../../../../include #----------------------------------- #... COMPILER/LINKER DEFINITIONS ... #----------------------------------- # Fortran compiler/linker FC = ifort # Fortran compiler options FFLAGS = -g -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (ntrack.x) $(EXE): ntrack.f $(OBJS) $(FC) $(FFLAGS) ntrack.f $(OBJS) -o $(EXE) dataio.o: dataio.f $(FC) $(FFLAGS) -c dataio.f writeaidlocal2.o: writeaidlocal2.f $(FC) $(FFLAGS) -c writeaidlocal2.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE)