# Makefile generated for serial execution using program bldmake # # Generation date [02/23/2021 13:38:56] # Configuration file [/usr/apps/CMAQ/CMAQ_v5.3/POST/hr2day/scripts/BLD_hr2day_v532_pgi2018/hr2day_v532.cfg] # Using GIT repository [/usr/apps/CMAQ/CMAQ_REPO_v5.3/POST/hr2day] # Full Compiler Paths when Makefile was Built: # FC = /usr/apps/lib/mpich-install/bin/mpif90 # CC = /usr/bin/cc # Library Paths: # $(LIB)/ioapi/include_files -> /usr/apps/lib/ioapi-3.2/ioapi/fixed_src # $(LIB)/ioapi/lib -> /usr/apps/lib/ioapi-3.2/Linux2_x86_64_medium_pgi2018_mpi3.3.2 # $(LIB)/mpi -> /usr/apps/lib/mpich-install/ # $(LIB)/netcdf -> /usr/apps/lib/netcdf-c-4.7.0-pgi2018/lib # $(LIB)/netcdff -> /usr/apps/lib/netcdf-fortran-4.4.5-pgi2018/lib # # Command-Line Options: # DEBUG = TRUE or true -- turn on debug flags # OR debug = true or TRUE -- turn on debug flags # Can set either variable by using the setenv command for # a debugging session with multiple compilations # #------------------------------------------------- EXEC = hr2day_v532.exe FC = mpif90 CC = cc LIB = /usr/apps/CMAQ/CMAQ_v5.3/lib/x86_64/pgi2018 include_path = -I $(LIB)/ioapi/lib \ -I $(LIB)/ioapi/include_files \ -I $(LIB)/netcdf/include \ -I $(LIB)/netcdff/include WARN = FSTD = -O3 DBG = -O0 -g -Mbounds -Mchkptr -traceback -Ktrap=fp ifneq (,$(filter $(debug), TRUE true True T )) DEBUG = TRUE endif ifneq (,$(filter $(DEBUG), TRUE true )) f_FLAGS = -Mfixed -Mextend -mcmodel=medium -tp px $(DBG) $(include_path) f90_FLAGS = -Mfree -Mextend -mcmodel=medium -tp px $(DBG) $(include_path) else f_FLAGS = -Mfixed -Mextend -mcmodel=medium -tp px $(FSTD) $(include_path) f90_FLAGS = -Mfree -Mextend -mcmodel=medium -tp px $(FSTD) $(include_path) endif F_FLAGS = $(f_FLAGS) F90_FLAGS = $(f90_FLAGS) C_FLAGS = -I. LINKER = $(FC) LINK_FLAGS = REPOROOT = /usr/apps/CMAQ/CMAQ_REPO_v5.3/POST/hr2day CPP = $(FC) cpp_flags = ifneq (,$(filter $(isam), TRUE true True T )) CPP_FLAGS = -Disam $(cpp_flags) else CPP_FLAGS = $(cpp_flags) endif IOAPI = -L$(LIB)/ioapi/lib -lioapi NETCDF = -L$(LIB)/netcdff/lib -lnetcdff -L$(LIB)/netcdf/lib -lnetcdf LIBRARIES = $(IOAPI) $(NETCDF) SRC = \ module_file.o \ module_tstep.o \ module_evaluator.o \ module_grid.o \ module_spec.o \ module_envvar.o \ ck_ctms.o \ getTZ.o \ hr2day.o \ parser.o OBJS = \ $() \ $(SRC) .SUFFIXES: .F .f .c .F90 .f90 $(EXEC): $(OBJS) $(LINKER) $(LINK_FLAGS) $(OBJS) $(LIBRARIES) -o $@ .F.o: $(FC) -c $(F_FLAGS) $(CPP_FLAGS) $(INCLUDES) $< .f.o: $(FC) -c $(F_FLAGS) $< .F90.o: $(FC) -c $(F90_FLAGS) $(CPP_FLAGS) $(INCLUDES) $< .f90.o: $(FC) -c $(F90_FLAGS) $< .c.o: $(CC) -c $(C_FLAGS) $< clean: rm -f $(OBJS) *.mod # dependencies ck_ctms.o: module_file.o hr2day.o: module_spec.o module_evaluator.o module_envvar.o module_file.o \ module_grid.o module_tstep.o module_envvar.o: module_tstep.o module_evaluator.o: module_file.o module_tstep.o module_grid.o: module_file.o module_tstep.o: module_file.o