# MAKEFILE used for development module testing # Alex Hoffmann # set netCDF path NETCDF = /usr/local/netcdf-3.6.2-ifort PNETCDF= /usr/local/parallel-netcdf-1.0.1 # set compiler F90 = mpif90 # mpif90 refers to a shell script that includes links to the libraries # set compiler flags OFLAGS = -g # set include flags IFLAGS = -I$(NETCDF)/include/ -I$(PNETCDF)/include/ # set pre-processing flags #PFLAGS = -fpp # concatenate flags FLAGS = $(OFLAGS) $(IFLAGS) $(PFLAGS) # set library flags LFLAGS = -L$(NETCDF)/lib -lnetcdf -L$(PNETCDF)/lib -lpnetcdf RM = rm -f #MAIN = MAIN = mpi_setup_netCDFout OBJECTS = all: $(MAIN) $(MAIN): $(MAIN).F90 $(OBJECTS) $(F90) $(FLAGS) -o $@ $^ $(LFLAGS) clean: $(RM) *.o *.mod