#px64 LIBNETCDF = $(NETCDF_LIB) FC90 = ifort FOR_OPT = -i4 -r8 -O3 -traceback -convert big_endian #debug FOR_OPT = -i4 -r8 -g -check bounds -check uninit -check pointers -traceback -convert big_endian FFLAGS = $(FOR_OPT) -I$(NETCDF_INC) #aix6cep #NCDF_INC =/usr/local/apps/netcdf/3.6.3/LP64/include/ #NCDF_LIB = -L/usr/local/apps/netcdf/3.6.3/LP64/lib/ -lnetcdf #FC90=xlf90_r #FFLAGS= -qinitauto -qrealsize=8 -qsuffix=cpp=f90 $(NCDF_LIB) -I$(NCDF_INC) #################### OBJETS= declarations.o\ readcoordmesh.o\ readsections.o\ sections_tools.o\ compute_sections.o\ writesections.o EXEC=diadct_sections #################### # Cible all : obligatoire # ----------------------- all : $(EXEC) # cible clean obligatoire # ----------------------- clean : @echo "" $(RM) $(OBJETS) $(EXEC) $(RM) *.o *.mod *lst @echo " " #################### declarations.o:declarations.f90 $(FC90) -c $(FFLAGS) -o $@ $< readcoordmesh.o:readcoordmesh.f90 declarations.o $(FC90) -c $(FFLAGS) -o $@ $< sections_tools.o:sections_tools.f90 declarations.o $(FC90) -c $(FFLAGS) -o $@ $< readsections.o:readsections.f90 sections_tools.o declarations.o $(FC90) -c $(FFLAGS) -o $@ $< writesections.o:writesections.f90 sections_tools.o declarations.o $(FC90) -c $(FFLAGS) -o $@ $< compute_sections.o:compute_sections.f90 sections_tools.o declarations.o $(FC90) -c $(FFLAGS) -o $@ $< $(EXEC):diadct_sections.f90 $(OBJETS) $(FC90) $(FFLAGS) $(OBJETS) -L$(NETCDF_LIB) -lnetcdf -o $@ $<