info specific to winisk and kazan
Here is a sample makefile for use at winisk/kazan. It uses Intel's FORTRAN compiler and links with NetCDF, FFTW3 and the Intel MKL.
SRC = file1.f90 file2.f90 ...
OBJ = $(SRC:.f90=.o)
FC = ifort
INCLUDE = -I/usr/local/netcdf/include
FFLAGSR = -O3
FFLAGS = -check bounds -g -debug all -warn all
MATH = -lm
FFT = -lfftw3 -Wl,--start-group $(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_sequential.a $(MKLPATH)/libmkl_core.a -Wl,--end-group -lm
NETCDF = -L/usr/local/netcdf/lib -lnetcdf
all: job_name
%.o: %.f90
$(FC) $(FFLAGS) -c $<
job_name: $(OBJ)
$(FC) $(INCLUDE) $(FFLAGS) -o job.out $(OBJ) $(MATH) $(FFT) $(NETCDF)
clean :
\rm *.o *.mod *~ *.out