# Makefile generated for serial execution using program bldmake # # Generation date [04/13/2020 14:07:26] # Configuration file [/opt/CMAQ_REPO/POST/bldoverlay/scripts/BLD_bldoverlay_v531_gcc/bldoverlay_v531.cfg] # Using GIT repository [/opt/CMAQ_REPO/POST/bldoverlay] # Full Compiler Paths when Makefile was Built: # FC = /usr/lib64/mpich/bin/mpif90 # CC = /usr/bin/cc # Library Paths: # $(LIB)/ioapi/include_files -> iopai_inc_gcc # $(LIB)/ioapi/lib -> ioapi_lib_gcc # $(LIB)/mpi -> mpi_lib_gcc # $(LIB)/netcdf -> netcdf_lib_gcc # $(LIB)/netcdff -> netcdff_lib_gcc # # 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 = bldoverlay_v531.exe FC = gfortran CC = gcc IOINC = /opt/ioapi-3.2/ioapi/fixed_src IOLIB = /opt/ioapi-3.2/${BIN} include_path = -I$(IOLIB) -I$(IOINC) -I/usr/include WARN = FSTD = -mcmodel=medium -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising -march=native -ftree-vectorize -ftree-loop-if-convert -finline-limit=512 DBG = -mcmodel=medium -Wall -O0 -g -fcheck=all -ffpe-trap=invalid,zero,overflow -fbacktrace ifneq (,$(filter $(debug), TRUE true True T )) DEBUG = TRUE endif ifneq (,$(filter $(DEBUG), TRUE true )) f_FLAGS = -ffixed-form -ffixed-line-length-132 -finit-character=32 $(DBG) $(include_path) f90_FLAGS = -ffree-form -ffree-line-length-none -finit-character=32 $(DBG) $(include_path) else f_FLAGS = -ffixed-form -ffixed-line-length-132 -finit-character=32 $(FSTD) $(include_path) f90_FLAGS = -ffree-form -ffree-line-length-none -finit-character=32 $(FSTD) $(include_path) endif F_FLAGS = $(f_FLAGS) F90_FLAGS = $(f90_FLAGS) C_FLAGS = -I. LINKER = $(FC) LINK_FLAGS = -fopenmp REPOROOT = /opt/CMAQ_REPO/POST/bldoverlay CPP = $(FC) cpp_flags = ifneq (,$(filter $(isam), TRUE true True T )) CPP_FLAGS = $(cpp_flags) -Disam else CPP_FLAGS = $(cpp_flags) endif LIBRARIES = -L$(IOLIB) -lioapi -L/usr/lib64 -lnetcdff -lnetcdf SRC = \ module_sites.o \ bldoverlay.o \ getTZ.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 bldoverlay.o: module_sites.o