WRF_DIR = ../sref_wrf_v3.4.fd CPPFLAGS = -I. -C -P -DNETCDF FC = ifort -lmpi FCDEBUG = -g -traceback -debug all -check all -O0 -ftrapuv -fpe0 FCDEBUG = -O3 FCFLAGS = $(FCDEBUG) -I dio -I${NETCDF}/include ${NEMSIO_INC} CPP = /lib/cpp RM = rm -f DIOLIBS = dio/dio.o dio/fbioc.o WRFLIBS = ${WRF_DIR}/frame/pack_utils.o \ ${WRF_DIR}/frame/module_machine.o \ ${WRF_DIR}/frame/module_wrf_error.o \ -L${WRF_DIR}/external/esmf_time_f90 -lesmf_time LIBS = -L/home/Ratko.Vasic/lib_tmp/nemsio -lnemsio \ -L/home/Ratko.Vasic/lib_tmp -lw3-2.0_4 \ -L/home/Ratko.Vasic/lib_tmp -lw3ext_4 \ -L/home/Ratko.Vasic/lib_tmp -lbacio_4 -lsp_4 \ -L${NETCDF}/lib -lnetcdf NEMSIO_INC = -I/home/Ratko.Vasic/lib_tmp/nemsio/incmod .SUFFIXES: .f .f90 .F90 .f.o: $(FC) -c $(FCFLAGS) $*.f .f90.o: $(FC) -c $(FCFLAGS) $*.f90 .F90.o : $(FC) -c $(FCFLAGS) $*.F90 all: breeding_nmb.exe lbc_perturb_nmb.exe breeding_nmm.exe breeding_arw.exe lbc_perturb_wrf.exe module_internal_header_util.o : module_internal_header_util.f90 module_internal_header_util.f90: ln -sf $(WRF_DIR)/inc/intio_tags.h . ln -sf $(WRF_DIR)/external/io_int/module_internal_header_util.f module_internal_header_util.f90 mpiio.o : module_internal_header_util.o breeding_dio.exe: breeding_dio.o $(FC) $(FCFLAGS) breeding_dio.o -o $@ $(DIOLIBS) breeding_nmb.exe: breeding_nmb.o $(FC) $(FCFLAGS) breeding_nmb.o -o $@ ${LIBS} lbc_perturb_nmb.exe: lbc_perturb_nmb.o $(FC) $(FCFLAGS) lbc_perturb_nmb.o -o $@ $(DIOLIBS) breeding_nmm.exe: mpiio.o module_internal_header_util.o breeding_nmm.o $(FC) $(FCFLAGS) mpiio.o module_internal_header_util.o breeding_nmm.o -o $@ $(WRFLIBS) -L${NETCDF}/lib -lnetcdf breeding_arw.exe: mpiio.o module_internal_header_util.o breeding_arw.o $(FC) $(FCFLAGS) mpiio.o module_internal_header_util.o breeding_arw.o -o $@ $(WRFLIBS) -L${NETCDF}/lib -lnetcdf lbc_perturb_wrf.exe: mpiio.o module_internal_header_util.o lbc_perturb_wrf.o $(FC) $(FCFLAGS) mpiio.o module_internal_header_util.o lbc_perturb_wrf.o -o $@ $(WRFLIBS) -L${NETCDF}/lib -lnetcdf clean: $(RM) *.exe *.o *.mod intio_tags.h module_internal_header_util.f90