make.hex.pg 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. LIB_NETCDF= -lnetcdf
  2. LIB_LAPACK = -lacml
  3. INCS = $(INC_NETCDF) $(INC_FFTW)
  4. LIBS = $(LIB_LAPACK) $(LIB_NETCDF) $(LIB_FFTW)
  5. ifeq ($(MPI),YES)
  6. CF90 = ftn
  7. PARO = -Mmpi=mpich -Mprof=dwarf -Minform=inform
  8. CPPFLAGS = -DQMPI
  9. else
  10. CF90 = ftn
  11. PAR0 =
  12. endif
  13. CF77 = $(CF90)
  14. CC = $(CF90)
  15. LD = $(CF90)
  16. CPP = /usr/bin/cpp -traditional-cpp -P
  17. CPPARCH = -DIA32 -DFFTW -DNOMPIR8
  18. CPPFLAGS += $(CPPARCH) -DF90_NOFLUSH
  19. SIZEO = -r8
  20. OPTO = -fast -fastsse
  21. ARCHO= -mcmodel=medium
  22. INLO =
  23. DIVO = -byteswapio
  24. DEBUG_FLAGS =
  25. # uncomment below for debugging and set MPI = NO in makefile
  26. # CF90 = pgfortran
  27. # DEBUG_FLAGS = -g -Minform=inform
  28. # PAR0 =
  29. # OPTO =
  30. # INC_NETCDF = -I/local/netcdf-3.6.2-pgi/include
  31. # LIB_NETCDF = /local/netcdf-3.6.2-pgi/lib/libnetcdf.a
  32. # INC_FFTW = -I/opt/fftw/3.2.2/include
  33. # LIB_FFTW = /opt/fftw/3.2.2/lib/libfftw3.a
  34. FFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS) $(INCS)
  35. CFLAGS = $(FFLAGS) -DpgiFortran
  36. LINKFLAGS = $(SIZEO) $(OPTO) $(ARCHO) $(PARO) $(INLO) $(DIVO) $(DEBUG_FLAGS)
  37. # language-specific flags
  38. #
  39. F77FLG = -Mfixed
  40. F90FLG = -Mfree