# ===================================================================== # # Makefile for OCD5 intensity model - ocd5 routine. # Written by DeMaria, June 2013 # # 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 = ocd5.x # source names (full list) SRC = ocd5.f decayo.f dtland.f aland.f wland.f fland.f xint.f writeaidlocal.f dataio.f dtgutils.f # objects OBJS = decayo.o dtland.o aland.o wland.o fland.o xint.o writeaidlocal.o dataio.o dtgutils.o #----------------- #... LIBRARIES ... #----------------- # nwprod libs #LIBS = -L../../lib -lguidanceio LIBS = #---------------- #... INCLUDES ... #---------------- # dataio includes #INCS = -I../../include INCS = #----------------------------------- #... COMPILER/LINKER DEFINITIONS ... #----------------------------------- # Fortran compiler/linker (FCG is for the GOES routine) #FC = ncepxlf90 #FCG = ncepxlf90 FC = ifort FCG = ifort # Fortran compiler options FFLAGS = -align all #------------------------------------- #... OCD5 COMPILATION and LINKING ... #------------------------------------- ## (ocd5.x) $(EXE): ocd5.f $(OBJS) $(FC) $(FFLAGS) ocd5.f $(OBJS) $(LIBS) $(INCS) -o $(EXE) decayo.o: decayo.f $(FC) $(FFLAGS) -c decayo.f dtland.o: dtland.f $(FC) $(FFLAGS) -c dtland.f 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 xint.o: xint.f $(FC) $(FFLAGS) -c xint.f writeaidlocal.o: writeaidlocal.f $(FC) $(FFLAGS) -c writeaidlocal.f dataio.o: dataio.f $(FC) $(FFLAGS) -c dataio.f dtgutils.o: dtgutils.f $(FC) $(FFLAGS) -c dtgutils.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE) $(OBJS)