make.lucia 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Library and include
  2. INC_NETCDFF = -I${EBROOTNETCDFMINFORTRAN}/include
  3. INC_NETCDF = -I${EBROOTNETCDF}/include
  4. LIB_NETCDF = -L${EBROOTNETCDF}/lib64 -lnetcdf
  5. LIB_NETCDFF = -L${EBROOTNETCDFMINFORTRAN}/lib -lnetcdff
  6. INC_LAPACK = -I${EBROOTSCALAPACK}/include
  7. LIB_LAPACK = -L${EBROOTSCALAPACK}/lib -lscalapack
  8. LIB_BLAS = -L${EBROOTOPENBLAS}/lib -lopenblas
  9. INC_BLAS = -I${EBROOTOPENBLAS}/include
  10. INC_FFT = -I${EBROOTFFTW}/include
  11. LIB_FFT = -L${EBROOTFFTW}/lib -lfftw3 -lfftw3_mpi
  12. #INCS = $(INC_NETCDF) $(INC_FFT) $(INC_NETCDFF) $(INC_LAPACK) $(INC_BLAS)
  13. INCS = $(INC_NETCDF) $(INC_FFT) $(INC_NETCDFF) $(INC_BLAS)
  14. LIBS = $(LIB_NETCDF) $(LIB_NETCDFF) $(LIB_FFT) $(LIB_LAPACK) $(LIB_BLAS)
  15. CF90 = mpif90
  16. CPPFLAGS = -D_G95_ -DQMPI
  17. CF77 = $(CF90)
  18. LD = $(CF90)
  19. CPP = cpp -traditional-cpp
  20. CC = mpicc
  21. CPPARCH =
  22. CPPFLAGS +=
  23. SIZEO = -fdefault-real-8
  24. OPTO = -O3 -fallow-argument-mismatch
  25. DEBUG_FLAGS = #-g -traceback -W1 -warn unused -warn uncalled -debug extended -debug-parameters -ftrapuv -fpe0
  26. FFLAGS = $(SIZEO) $(OPTO) $(DEBUG_FLAGS) $(INCS)
  27. CFLAGS = -Df2cFortran $(OPTO) $(INCS)
  28. LINKFLAGS = $(SIZEO) $(OPTO) $(DEBUG_FLAGS) $(LIBS)
  29. # language-specific flags
  30. #
  31. F77FLG =
  32. F90FLG =