makefile~ 452 Bytes
COMPILER= ifort

OPTION= -O3 


NETCDFinc= -I/usr/local/include 
NETCDFLIB= -L/usr/local/lib -lnetcdf

OBJ= *.o

SRC= *.f90

MOD= parameters.mod 

EXEC= WIM2



WIM2: $(OBJ)
	$(COMPILER) $(OPTION) $(NETCDFinc) -o $(EXEC) $(OBJ) $(NETCDFLIB) 
	mv WIM2 ../
	

$(MOD): parameters.f90 
	$(COMPILER)  -c parameters.f90


$(OBJ): $(SRC) $(MOD)
	$(COMPILER) $(NETCDFinc) -c $(SRC) $(NETCDFLIB) 


clean:
	rm -f *.o *.mod 

mrproper:

	rm -f *.o *.mod ../WIM2