# ===================================================================== # # Makefile for SHIPS intensity model - mkirprof routine. # Created by M. DeMaria, May 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 LOC = ../../exec #-------------------------------------------- #... OBJECT/EXECUTABLE/SOURCE DEFINITIONS ... #-------------------------------------------- # executable names (full list) EXE = mkirprof.x # source names (full list) SRC = tdiff.f distk.f # objects OBJS = tdiff.o distk.o #----------------- #... 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 = ifort FCG = ifort # Fortran compiler options FFLAGS = -align all #------------------------------------- #... COMPILATION and LINKING ... #------------------------------------- ## (mkirprof.x) $(EXE): mkirprof.f $(OBJS) $(FC) $(FFLAGS) mkirprof.f $(OBJS) $(LIBS) $(INCS) -o $(EXE) tdiff.o: tdiff.f $(FC) $(FFLAGS) -c tdiff.f wland.o: distk.f $(FC) $(FFLAGS) -c distk.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE) $(OBJS)