# 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 = bldoverlay_v53.exe FC = mpiifort CC = cc IOINC = /home/lus03/roopa/AMET/ioapi-3.2-2020111/ioapi/fixed_src IOLIB = /home/lus03/roopa/AMET/ioapi-3.2-2020111/Linux2_x86_64ifort include_path = -I$(IOLIB) -I$(IOINC) BASEDIR = /home/lus03/roopa/AMET/ioapi-3.2-2020111 IODIR = ${BASEDIR}/ioapi OBJDIR = ${BASEDIR}/Linux2_x86_64ifort # LIB = /home/kappel/CMAQ_Code/PROJECTS/CMAQv53r3/lib/x86_64/intel18.0 # include_path = -I $(LIB)/ioapi/lib \ # -I $(LIB)/ioapi/include_files \ # -I $(LIB)/netcdf/include \ # -I $(LIB)/netcdff/include WARN = 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 = -extend-source 132 $(DBG) $(include_path) f90_FLAGS = -free $(DBG) $(include_path) else f_FLAGS = -extend-source 132 $(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 # IOAPI = -L$(LIB)/ioapi/lib -lioapi # NETCDF = -L$(LIB)/netcdff/lib -lnetcdff -L$(LIB)/netcdf/lib -lnetcdf # LIBRARIES = $(IOAPI) $(NETCDF) LIBS = -L${OBJDIR} -lioapi `nf-config --flibs` `nc-config --libs` $(OMPLIBS) $(ARCHLIB) $(ARCHLIBS) SRC = \ module_sites.o \ bldoverlay.o \ getTZ.o \ parser.o OBJS = \ $() \ $(SRC) .SUFFIXES: .F .f .c .F90 .f90 $(EXEC): $(OBJS) $(LINKER) $(LINK_FLAGS) $(OBJS) $(LIBS) -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