# make file to build combine program 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 PROGRAM = combine.exe # Include file subsitution definitions INCLUDES = -DSUBST_GRID_ID= \ -DSUBST_IOPARMS=\'$(IOAPI_INC)/PARMS3.EXT\' \ -DSUBST_IOFDESC=\'$(IOAPI_INC)/FDESC3.EXT\' \ -DSUBST_IODECL=\'$(IOAPI_INC)/IODECL3.EXT\'\ LIBRARIES = -L$(IOAPI_LIB) -lioapi \ -L$(NETCDF_LIB) -lnetcdff -lnetcdf FC = pgf90 FC_FLAGS = -c -tp px -Mextend $(INCLUDES) -I$(IOAPI_LIB) OBJS = \ module_specdef.o \ module_file.o \ module_evaluator.o \ utils.o \ combine.o $(PROGRAM): $(OBJS) $(FC) $(OBJS) $(LIBRARIES) -o $(PROGRAM) .F.o: $(FC) $(FC_FLAGS) $<