# Makefile generated for serial execution using program bldmake # # 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 = combine.exe FC = pgf90 CC = pgcc IOAPI_INC = /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/ioapi/fixed_src IOAPI_LIB = /root/Documents/softwares/ioapi3.2_install/ioapi-3.2-20200828/Linux3 NETCDF_LIB = /usr/local/netcdf-4.7.4/lib include_path = -I $(IOAPI_LIB) \ -I $(IOAPI_INC) \ -I /usr/local/netcdf-4.7.4/include \ -I /usr/local/netcdf-4.7.4/include WARN = FSTD = -Mextend -O2 -fast -V -Msecond_underscore #FSTD = -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive DBG = -O0 -g -check bounds -check uninit -fpe0 -fno-alias -ftrapuv -traceback ifneq (,$(filter $(debug), TRUE true True T )) DEBUG = TRUE endif ifneq (,$(filter $(DEBUG), TRUE true )) f_FLAGS = $(DBG) $(include_path) #f_FLAGS = -fixed -132 $(DBG) $(include_path) f90_FLAGS = -free $(DBG) $(include_path) else #f_FLAGS = -fixed -132 $(FSTD) $(include_path) f_FLAGS = $(FSTD) $(include_path) f90_FLAGS = -free $(FSTD) $(include_path) endif F_FLAGS = $(f_FLAGS) F90_FLAGS = $(f90_FLAGS) C_FLAGS = -I. LINKER = $(FC) LINK_FLAGS = CPP = $(FC) cpp_flags = ifneq (,$(filter $(isam), TRUE true True T )) CPP_FLAGS = $(cpp_flags) -Disam else CPP_FLAGS = $(cpp_flags) endif LIBRARIES = -L$(IOAPI_LIB) -lioapi \ -L$(NETCDF_LIB) -lnetcdff -lnetcdf SRC = \ module_file.o \ module_evaluator.o \ module_specdef.o \ combine.o \ utils.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 combine.o: module_specdef.o module_file.o module_evaluator.o module_evaluator.o: module_file.o module_specdef.o: module_file.o