makefile 516 Bytes
COMPILER= gfortran

OPTION= -O3 

NETCDFinc=-I/usr/include
NETCDFLIB=-L/usr/lib64 -lnetcdff
NETCDFMOD=-I/usr/lib64/gfortran/modules

OBJ= *.o

SRC= *.f90

MOD= parameters.mod 

EXEC= WIM2



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

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


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


clean:
	rm -f *.o *.mod 

mrproper:

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