#FC = pgf90 -byteswapio #FC = ifort #NETCDF=/opt/apps/intel_12.0/linux86_64/netcdf/3.6.3/lib NETCDF=/share/apps/intel_2013/netcdf/4.4.0/lib/ DIR=/work/users/hapt/for_CoKim/code.2016.jul/src/ FFLAGS = -O -xHost -ftz $(CPPGLAGS) LIBS = $(LDFLAGS) -L$(NETCDF) -lnetcdf -lnetcdff #FC = ifort #FFLAGS = -O -xHost -ftz -fpp -I$(NETCDF)/include #LIBS = -L$(NETCDF)/lib -lnetcdf -lnetcdff #LIBS = $(LDFLAGS) -L$(DIR) -lnetcdf -lnetcdff ## HA START #FC = ifort #FFLAGS = -O -xHost -ftz -fpp -I$(NETCDF)/include #LIBS = -L$(NETCDF)/lib -lnetcdf -lnetcdff ## HA END .SUFFIXES: .f90 .o .for .f90.o: $(FC) $(FFLAGS) -c $*.f90 .for.o: $(FC) $(FFLAGS) -c $*.for all: tcdetect pre_regcm pre_regcm: pre_proc_regcm.o module_datedef.o sub_sigma2p.o $(FC) $(FFLAGS) $(OBJ) $(LDFLAGS) $(LIBS) -o ../pre_regcm pre_proc_regcm.o module_datedef.o sub_sigma2p.o tcdetect: tcdetect.o module_datedef.o ratpe.o ratva.o rat2d.o sub_tcdetect.o search_center.o $(FC) $(FFLAGS) $(OBJ) $(LDFLAGS) $(LIBS) -o ../tcdetect tcdetect.o module_datedef.o ratpe.o ratva.o rat2d.o search_center.o \ sub_tcdetect.o pre_proc_regcm.o: pre_proc_regcm.f90 module_datedef.o sub_sigma2p.o module_datedef.o: module_datedef.f90 sub_sigma2p.o: sub_sigma2p.for tcdetect.o: tcdetect.f90 module_datedef.o search_center.o: search_center.for ratpe.o: ratpe.for ratva.o: ratva.for rat2d.o: rat2d.for sub_tcdetect.o:sub_tcdetect.f90 clean: rm *.o *.mod