###################################################################### # # Makefile for CMAQ2CAMx v2 # # DIRECTORIES: # # IOAPI_INC - I/O-API include file directory # IOAPI_LIB - I/O-API library file directory # NETCDF_LIB - NetCDF library file directory # ###################################################################### 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 ###################################################################### FC = pgf90 OPT = -mcmodel=medium -O2 -pc 64 -Mdalign -Mnoframe -byteswapio -Mlfs -Bstatic_pgi LIB = -L$(IOAPI_LIB) -lioapi -L$(NETCDF_LIB) -lnetcdff -lnetcdf INC = -I$(IOAPI_INC) ###FC = ifort ###OPT = -mcmodel=medium -O2 -align dcommons -extend_source -convert big_endian ###LIB = -L$(IOAPI_LIB) -lioapi -L$(NETCDF_LIB) -lnetcdf ###INC = -I$(IOAPI_INC) ###FC = gfortran ###OPT = -mcmodel=medium -O2 -fno-align-commons -fconvert=big-endian -frecord-marker=4 -ffixed-line-length-0 ###LIB = -L$(IOAPI_LIB) -lioapi -L$(NETCDF_LIB) -lnetcdf ###INC = -I$(IOAPI_INC) .PHONY: all clean all : spcmap cmaq2uam ptht pthtq spcmap : spcmap.o $(FC) $(OPT) -o $@ $^ $(LIB) cmaq2uam : cmaq2uam.o $(FC) $(OPT) -o $@ $^ $(LIB) ptht : ptht.o $(FC) $(OPT) -o $@ $^ pthtq : pthtq.o $(FC) $(OPT) -o $@ $^ $(LIB) .f.o : $(FC) $(INC) $(OPT) -c $< clean : rm -f *.o spcmap cmaq2uam ptht pthtq