makefile 564 Bytes
Newer Older
Jérémy Baudry's avatar
Jérémy Baudry committed
1 2 3 4
COMPILER= gfortran

OPTION= -O3 

Jérémy Baudry's avatar
Jérémy Baudry committed
5 6 7
NETCDFinc=-I/usr/include
NETCDFLIB=-L/usr/lib64 -lnetcdff
NETCDFMOD=-I/usr/lib64/gfortran/modules
Jérémy Baudry's avatar
Jérémy Baudry committed
8
DISLIN=-I/usr/local/dislin/gf -ldislin
Jérémy Baudry's avatar
Jérémy Baudry committed
9 10 11 12 13 14 15 16 17 18 19
OBJ= *.o

SRC= *.f90

MOD= parameters.mod 

EXEC= WIM2



WIM2: $(OBJ)
Jérémy Baudry's avatar
Jérémy Baudry committed
20
	$(COMPILER) $(OPTION) $(NETCDFinc) $(NETCDFMOD) -o $(EXEC) $(OBJ) $(NETCDFLIB) $(DISLIN)
Jérémy Baudry's avatar
Jérémy Baudry committed
21 22 23 24 25 26 27 28
	mv WIM2 ../
	

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


$(OBJ): $(SRC) $(MOD)
Jérémy Baudry's avatar
Jérémy Baudry committed
29
	$(COMPILER) $(NETCDFinc) $(NETCDFMOD) -c $(SRC) $(NETCDFLIB) $(DISLIN)
Jérémy Baudry's avatar
Jérémy Baudry committed
30 31 32 33 34 35 36 37


clean:
	rm -f *.o *.mod 

mrproper:

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