# linux flags - for INTEL compiler FC = ifort FFLAGS = -O -xHost -ftz -fpp -I$(NETCDF)/include LIBS = -L$(NETCDF)/lib -lnetcdf -lnetcdff .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