

FC  =  ifort # gfortran # pgf90
Inc = /work/apps/intel_2016/netcdf/4.3.3.1/

.SUFFIXES: .f90 .o

.f90.o:
	$(FC) -c $*.f90


tr: TC_jma.f90
	$(FC) -o tr.exe TC_jma.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

tr1: TC_Tr_jma_to_GrADS.f90
	$(FC) -o tr.exe TC_Tr_jma_to_GrADS.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

ves: TC_VES_jma.f90
	$(FC) -o ves.exe TC_VES_jma.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

ntc: NTC_jma.f90
	$(FC) -o ntc.exe NTC_jma.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

pc: PCA_DP_TC_2020.f90
	$(FC) -o pc.exe PCA_DP_TC_2020.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

fa: FA_TC_2020.f90 
	$(FC) -o fa.exe FA_TC_2020.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

#########################################

cma0: TC_cma.f90 
	$(FC) -o cma.exe TC_cma.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

cma: TC_VES_cma.f90 
	$(FC) -o cma.exe TC_VES_cma.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

jw: TC_jwtc.f90
	$(FC) -o jw.exe TC_jwtc.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/

jw1: TC_VES_jwtc.f90
	$(FC) -o jw.exe TC_VES_jwtc.f90 -L ${Inc}lib/ -lnetcdff -I ${Inc}include/


clean:
	rm *.exe  # *.o  *.mod
