#------------------------------------------------------------------------- # Makefile # # This is the Makefile for the general utilities used by the NHC guidance suite. # Created: 10/31/2016 M. DeMaria - Code consolidation for WCOSS Cray migration # Modified: 08/21/2021 S. Stevenson - WCOSS2 Cray migration # Modified: 01/31/2023 J. Dostalek - Beginning transition to Fortran 90 # Modified: 02/01/2023 J. Dostalek - File virt.f90 replaced by teten.f90 # Modified: 02/03/2023 J. Dostalek - All files now Fortran 90. # Modified: 02/06/2023 J. Dostalek - Decided to go back to original # packsubs.f. Will switch to Fortran 90 after more # testing. # Modified: 01/10/2024 R. Zelinsky - Added DEBUG targets #------------------------------------------------------------------------- SRCS = ctorh.f90 distk.f90 jday.f90 jdayi.f90 llintp.f90 llintsp.f90 \ packsubs.f stndz.f90 tadd.f90 tdiff.f90 thetae.f90 tspdcal.f90 \ teten.f90 xint.f90 OBJS = $(addsuffix .o,$(basename $(SRCS))) FC = ftn ifeq ($(FC), ftn) FFLAGS = -g -align all -w DEBUG = -ftrapuv -check_all -traceback -g else FFLAGS = DEBUG = endif DEBUGFLAGS = -g TARGET = libgeneralutils.a INCS = -I../../../include all: $(TARGET) $(TARGET): $(OBJS) ar vru $(TARGET) $(OBJS) ranlib $(TARGET) ctorh.o: ctorh.f90 $(FC) -c $(FFLAGS) ctorh.f90 distk.o: distk.f90 $(FC) -c $(FFLAGS) distk.f90 jday.o: jday.f90 $(FC) -c $(FFLAGS) jday.f90 jdayi.o: jdayi.f90 $(FC) -c $(FFLAGS) jdayi.f90 llintp.o: llintp.f90 $(FC) -c $(FFLAGS) llintp.f90 llintsp.o: llintsp.f90 $(FC) -c $(FFLAGS) llintsp.f90 packsubs.o: packsubs.f $(FC) -c $(FFLAGS) packsubs.f stndz.o: stndz.f90 $(FC) -c $(FFLAGS) stndz.f90 tadd.o: tadd.f90 $(FC) -c $(FFLAGS) tadd.f90 tdiff.o: tdiff.f90 $(FC) -c $(FFLAGS) tdiff.f90 thetae.o: thetae.f90 $(FC) -c $(FFLAGS) thetae.f90 tspdcal.o: tspdcal.f90 $(FC) -c $(FFLAGS) tspdcal.f90 teten.o: teten.f90 $(FC) -c $(FFLAGS) teten.f90 xint.o: xint.f90 $(FC) -c $(FFLAGS) xint.f90 debug : FFLAGS += $(DEBUG) debug : all clean: rm -f $(OBJS) $(TARGET) install: cp -f $(TARGET) ../../../lib