################### NOTE #################### ### If you need to have the "byteswapped" ### ### option in your .ctl file, INCLUDE ### ### the -Dbytesw directive in your compiler ### ### flags. ### ################################################# # compaq flags #LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf/include -I./ #FC = f90 #FCFLAGS = -g -C -free #CPP = /usr/bin/cpp #CPPFLAGS = -I. -C -P -DRECL1 #linux flags (PGI) #LIBNETCDF = -L/usr/local/netcdf-pgi/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf-pgi/include -I./ #FC = pgf90 #FCFLAGS = -g -C -Mfree #FCFLAGS = -fast -Mfree #PP = /usr/bin/cpp #CPPFLAGS = -I. -C -traditional -DRECL4 # linux flags (INTEL) #LIBNETCDF = -L/usr/local/netcdf-intel/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf-intel/include -I./ #FC = ifort #FCFLAGS = -C -FR #CPP = /usr/bin/cpp #CPPFLAGS = -I. -C -traditional -DRECL1 # Sun flags #LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf/include -I./ #FC = f90 #FCFLAGS = -g -C -free #CPP = /usr/ccs/lib/cpp #CPPFLAGS = -I. -C -P -DRECL4 -Dbytesw # SGI flags #LIBNETCDF = -L/usr/local/netcdf/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf/include -I./ #FC = f90 #FCFLAGS = -g -C -freeform #CPP = /lib/cpp #CPPFLAGS = -I. -C -P -DRECL4 -Dbytesw # IBM flags #LIBNETCDF = -L/usr/local/lib32/r4i4 -lnetcdf -lm #INCLUDE = -I/usr/local/include -I./ #FC = xlf #FCFLAGS = -g -C -qfree=f90 #CPP = /usr/lib/cpp #CPPFLAGS = -I. -C -P -DRECL4 # Darwin flags (using xlf compiler) LIBNETCDF = -L/usr/local/netcdf-xlf/lib -lnetcdf -lm #INCLUDE = -I/usr/local/netcdf-xlf/include -I./ INCLUDES=-I. -I/usr/local/include FC = gfortran FCFLAGS = -g -C CPP = /usr/bin/cpp CPPFLAGS = -I. -C -P -DRECL4 -xassembler-with-cpp ########################################################################## wrf_to_grads: wrf_to_grads.o module_wrf_to_grads_netcdf.o module_wrf_to_grads_util.o $(FC) $(FCFLAGS) -o wrf_to_grads wrf_to_grads.o \ module_wrf_to_grads_netcdf.o \ module_wrf_to_grads_util.o \ $(LIBNETCDF) wrf_to_grads.o: wrf_to_grads.F module_wrf_to_grads_util.o $(CPP) $(CPPFLAGS) wrf_to_grads.F > wrf_to_grads.f $(FC) $(FCFLAGS) -c wrf_to_grads.f $(INCLUDE) module_wrf_to_grads_util.o: module_wrf_to_grads_util.F module_wrf_to_grads_netcdf.o $(CPP) $(CPPFLAGS) module_wrf_to_grads_util.F > module_wrf_to_grads_util.f $(FC) $(FCFLAGS) -c module_wrf_to_grads_util.f $(INCLUDE) module_wrf_to_grads_netcdf.o: module_wrf_to_grads_netcdf.F $(CPP) $(CPPFLAGS) module_wrf_to_grads_netcdf.F > module_wrf_to_grads_netcdf.f $(FC) $(FCFLAGS) -c module_wrf_to_grads_netcdf.f $(INCLUDE) clean: rm -f *.o *.mod *.f wrf_to_grads