# #Makefile for netCDF serial example Bassi (IBM Power 5) # #$NETCDF should exist if the module load command #is already issued. # Fortran compiler: F90 = mpxlf # Compiler options: FOPTIM = F90FLAGS = $(FOPTIM) -c DEFINES = NPROCS = 4 #----------------------------------------------------------------------- #-------------------------Target definitions:--------------------------- .SUFFIXES: .o .F .f90 .f # Link up & build executable: s_ex1: s_ex1.o $(F90) -o s_ex1 s_ex1.o $(NETCDF) run_prog: s_ex1 poe ./s_ex1 -procs $(NPROCS) -nodes 2 # Compile sources: .F.o: $(F90) $(DEFINES) $(F90FLAGS) $*.F .f.o: $(F90) $(DEFINES) $(F90FLAGS) $*.f .f90.o: $(F90) $(DEFINES) $(F90FLAGS) $*.f90 clean: rm -f s_ex1.o clobber: clean rm -f s_ex1