source: trunk/INPUT/MISMIP_3D/Makefile @ 218

Last change on this file since 218 was 4, checked in by dumas, 10 years ago

initial import GRISLI trunk

File size: 1.7 KB
Line 
1# Makefile - compilo et options pour Vince (DELL Latitude)
2#DIRLOCAL=/usr/local
3#NETCDFHOME=  $(DIRLOCAL)/netcdf-4.0/64
4#NCDF_INC  = $(NETCDFHOME)/include
5#NCDF_LIB  = -L$(NETCDFHOME)/lib -lnetcdf
6
7#MKLPATH = $(DIRLOCAL)/intel/mkl11/lib/em64t
8#MKL_LIB  = -L$(MKLPATH) -lmkl_solver_lp64_sequential  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
9
10#IFORT=$(DIRLOCAL)/intel/compiler11/bin/intel64/ifort
11
12# Version Cat (32 bits)
13# librairies
14
15NCDF_INC  = $(NETCDFHOME)/include
16NCDF_LIB  = -L$(NETCDFHOME)/lib -lnetcdf
17
18
19MKL_LIB  = -L$(DIRLOCAL)/intel/mkl10/lib/32  -lmkl -lguide -lpthread #  -lmklapack
20export $MKL_LIB
21
22IFORT = $(DIRLOCAL)/intel/compiler10/bin/ifort
23
24ARITHM    = -O2 -fp-model precise  -heap-arrays # options pour une meilleure arithmetique (normalement reproductible)
25
26
27COMPIL=$(IFORT)
28FT = $(COMPIL) $(ARITHM) -c -fpe0  -traceback -CB #-pg  # -g # -pg -ipo
29LK = $(COMPIL) $(ARITHM)  -i_dynamic # -fpe0  -traceback  -CB  #-pg  #-g #  -pg
30LK = $(COMPIL) $(ARITHM)   -traceback  -CB  #-pg  #-g #  -pg
31F_NETCDF  = $(COMPIL) $(ARITHM) -c -fpe0 -I$(NCDF_INC)
32
33Listncdf = io_netcdf_GRISLI.o #sortie_netcdf_GRISLI.o
34List1 = scheme.o
35Lmis3 = mismip3.o
36
37scheme.o : scheme.f90
38        $(F_NETCDF) scheme.f90
39
40mismip3.o : mismip3.f90
41        $(F_NETCDF) mismip3.f90
42
43io_netcdf_GRISLI.o: Netcdf-routines/io_netcdf_GRISLI.f90
44        $(F_NETCDF) Netcdf-routines/io_netcdf_GRISLI.f90
45
46sortie_netcdf_GRISLI.o: Netcdf-routines/sortie_netcdf_GRISLI_mod.0.2-hassine.f90
47        $(F_NETCDF) Netcdf-routines/sortie_netcdf_GRISLI_mod.0.2-hassine.f90
48
49doncinput : $(Listncdf) $(List1)
50        $(LK) -o outputnc  $(Listncdf) $(List1) $(NCDF_LIB)
51
52mismip3di : $(Listncdf) $(Lmis3)
53        $(LK) -o mismip3   $(Listncdf) $(Lmis3) $(NCDF_LIB)
54clean   :
55        rm -f *.o *.mod *~  */*~
Note: See TracBrowser for help on using the repository browser.