source: branches/2011/dev_r2802_MERCATOR10_diadct/NEMOGCM/TOOLS/SECTIONS_DIADCT/src/Makefile @ 2849

Last change on this file since 2849 was 2849, checked in by cbricaud, 9 years ago

tools to compute sections pathway

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#px64
2LIBNETCDF = $(NETCDF_LIB)
3FC90      = ifort
4FOR_OPT   = -i4 -r8 -O3 -traceback -convert big_endian
5#debug FOR_OPT   = -i4 -r8 -g  -check bounds -check uninit -check pointers -traceback -convert big_endian
6FFLAGS    = $(FOR_OPT) -I$(NETCDF_INC)
7
8#aix6cep
9#NCDF_INC =/usr/local/apps/netcdf/3.6.3/LP64/include/
10#NCDF_LIB = -L/usr/local/apps/netcdf/3.6.3/LP64/lib/ -lnetcdf
11#FC90=xlf90_r
12#FFLAGS= -qinitauto -qrealsize=8 -qsuffix=cpp=f90 $(NCDF_LIB) -I$(NCDF_INC)
13
14
15####################
16OBJETS= declarations.o\
17   readcoordmesh.o\
18   readsections.o\
19   sections_tools.o\
20   compute_sections.o\
21   writesections.o
22
23EXEC=diadct_sections
24####################
25# Cible all : obligatoire
26# -----------------------
27all : $(EXEC)
28
29# cible clean obligatoire
30# -----------------------
31clean :
32   @echo ""
33   $(RM) $(OBJETS) $(EXEC)
34   $(RM) *.o *.mod *lst
35   @echo " "
36
37####################
38declarations.o:declarations.f90
39   $(FC90) -c $(FFLAGS) -o $@ $<
40
41readcoordmesh.o:readcoordmesh.f90 declarations.o
42   $(FC90) -c $(FFLAGS) -o $@ $< 
43
44sections_tools.o:sections_tools.f90 declarations.o
45   $(FC90) -c $(FFLAGS) -o $@ $<
46
47readsections.o:readsections.f90 sections_tools.o declarations.o
48   $(FC90) -c $(FFLAGS) -o $@ $<
49
50writesections.o:writesections.f90 sections_tools.o declarations.o
51   $(FC90) -c $(FFLAGS) -o $@ $<
52
53compute_sections.o:compute_sections.f90 sections_tools.o declarations.o
54   $(FC90) -c $(FFLAGS) -o $@ $<
55
56$(EXEC):diadct_sections.f90 $(OBJETS) 
57   $(FC90)  $(FFLAGS) $(OBJETS) -L$(NETCDF_LIB) -lnetcdf -o $@ $<
58
59
Note: See TracBrowser for help on using the repository browser.