make.hex.gnu 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. INC_NETCDF = -I/home/nersc/pavelsa/local/include
  2. LIB_NETCDF = /home/nersc/pavelsa/local/lib/libnetcdf.a
  3. LIB_LAPACK = /home/nersc/pavelsa/local/lib/lapack.a /home/nersc/pavelsa/local/lib/tmglib.a /home/nersc/pavelsa/local/lib/blas.a
  4. LIB_FFT = /opt/fftw/3.2.1/lib/libfftw3.a
  5. INCS = $(INC_NETCDF) -I/opt/fftw/3.2.2/include
  6. LIBS = $(LIB_LAPACK) $(LIB_NETCDF) $(LIB_FFT)
  7. ifeq ($(MPI),YES)
  8. CF90 = /home/nersc/pavelsa/local/bin/mpif90
  9. PARO =
  10. CPPFLAGS = -DQMPI
  11. else
  12. CF90 = /home/nersc/pavelsa/local/bin/g95
  13. PAR0 =
  14. endif
  15. CF77 = $(CF90)
  16. LD = $(CF90)
  17. CPP = /usr/bin/cpp -traditional-cpp
  18. CC = gcc
  19. CPPARCH = -DIA32 -DFFTW -DNOMPIR8
  20. CPPFLAGS += -P $(CPPARCH) -DF90_NOFLUSH -D_G95_
  21. SIZEO = -r8
  22. #OPTO = -O2 -Wall
  23. OPTO = -Wall
  24. #ARCHO = -fno-second-underscore
  25. INLO =
  26. DIVO =
  27. DEBUG_FLAGS = -g
  28. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCS)
  29. CFLAGS = $(FFLAGS) -Df2cFortran
  30. LINKFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS)
  31. # language-specific flags
  32. #
  33. F77FLG =
  34. F90FLG =