# ===================================================================== # # 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 # Revised by M. DeMaria, Aug 2014 for dev version # Revised by M. DeMaria, Aug 2014 for 2014 SHIPS and some clean up # # 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 #-- 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 = iships.x # source names (full list) SRC = iships.f decay.f rapidga.f rapidge.f aland.f wland.f shland.f gbland.f fland.f tclip.f rapid_aid.f dataio.f \ lgeim.f etclass.f ric2o.f dftop1.f PrSEFoNe.f mpical.f mpicalo.f writeaidlocal2.f bassel.f \ jday.f jdayi.f patch0.f sdpar.f tadd.f tspdcal.f xint.f # objects OBJS = decay.o rapidga.o rapidge.o aland.o wland.o shland.o gbland.o fland.o tclip.o rapid_aid.o dataio.o \ lgeim.o etclass.o ric2o.o dftop1.o PrSEFoNe.o mpical.o mpicalo.o writeaidlocal2.o bassel.o \ jday.o jdayi.o patch0.o sdpar.o tadd.o tspdcal.o xint.o #----------------- #... LIBRARIES ... #----------------- # nwprod libs LIBS = -L../../../../../lib -lguidanceio #---------------- #... INCLUDES ... #---------------- # dataio includes INCS = -I../../../../../include #----------------------------------- #... COMPILER/LINKER DEFINITIONS ... #----------------------------------- # Fortran compiler/linker FC = ifort # Fortran compiler options FFLAGS = -align all #------------------------------------- #... SHIPS COMPILATION and LINKING ... #------------------------------------- ## (ilsin.x) $(EXE): iships.f $(OBJS) $(FC) $(FFLAGS) iships.f $(OBJS) -o $(EXE) 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 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 fland.o: fland.f $(FC) $(FFLAGS) -c fland.f tclip.o: tclip.f $(FC) $(FFLAGS) -c tclip.f rapid_aid.o: rapid_aid.f $(FC) $(FFLAGS) -c rapid_aid.f dataio.o: dataio.f $(FC) $(FFLAGS) -c dataio.f lgeim.o: lgeim.f $(FC) $(FFLAGS) -c lgeim.f etclass.o: etclass.f $(FC) $(FFLAGS) -c etclass.f ric2o.o: ric2o.f $(FC) $(FFLAGS) -c ric2o.f dftop1.o: dftop1.f $(FC) $(FFLAGS) -c dftop1.f PrSEFoNe.o: PrSEFoNe.f $(FC) $(FFLAGS) -c PrSEFoNe.f mpical.o: mpical.f $(FC) $(FFLAGS) -c mpical.f mpicalo.o: mpicalo.f $(FC) $(FFLAGS) -c mpicalo.f writeaidlocal2.o: writeaidlocal2.f $(FC) $(FFLAGS) -c writeaidlocal2.f bassel.o: bassel.f $(FC) $(FFLAGS) -c bassel.f jday.o: jday.f $(FC) $(FFLAGS) -c jday.f jdayi.o: jdayi.f $(FC) $(FFLAGS) -c jdayi.f patch0.o: patch0.f $(FC) $(FFLAGS) -c patch0.f sdpar.o: sdpar.f $(FC) $(FFLAGS) -c sdpar.f tadd.o: tadd.f $(FC) $(FFLAGS) -c tadd.f tspdcal.o: tspdcal.f $(FC) $(FFLAGS) -c tspdcal.f xint.o: xint.f $(FC) $(FFLAGS) -c xint.f #------------------------------------ #... INSTALL EXES / SCRIPTS MACRO ... #------------------------------------ install: $(CP) $(EXE) $(LOC) #--------------------------------------- #... CLEANUP / REMOVE OBJECTS & EXES ... #--------------------------------------- clean: $(RM) $(EXE) $(OBJS)