FC=xlf90_r 
FC77=f77 
LDFLAGS_ARCH=-lmass
FFLAGS_ARCH=-qsuffix=cpp=F90 -qextname -O3 -qsmp=noauto -qtune=auto -qarch=auto -qcache=auto -qfloat=hsflt:hssngl -qalias=noaryovrlp:nointptr:nopteovrlp:std -lmass -qhot=vector:simd:arraypad:level=1 -qenablevmx -qvecnvol $(FFLAG_D)RTTOV_XLF
FFLAG_D=-WF,-D
CPP=/usr/lib/cpp
AR=ar r

FFLAGS_ARCH_rttov_opdep = -g -O3 -qsmp=noauto -qsuffix=cpp=F90 -qextname -qtune=auto -qarch=auto -qcache=auto -qfloat=hsflt:hssngl -qalias=noaryovrlp:nointptr:nopteovrlp:std -lmass -qhot=vector:simd:arraypad:level=1 -qenablevmx -qvecnvol $(FFLAG_D)RTTOV_XLF -qnounroll

# -qtune=auto - tunes instruction selection, scheduling, and other architecture-dependent performance enhancements to run best on the hardware that the code is compiled on.
# -qarch=... Specifies the processor architecture, or family of architectures, where the code may run.
# -qfloat=hsflt:hssngl - improve performance of single precision numerics 
# -qalias=noaryovrlp:nointptr:nopteovrlp:std - tell compiler that RTTOV doesn't do anything unusual with pointers. (small performance enhancement)
# -qhot=vector:simd:arraypad:level=1 Performs high-order loop analysis and transformations (HOT) during optimization. (significant performance enhancement)        
# -qvecnvol -qenablevmx necessary if generating short vector code (-qhot=simd)
# $(FFLAG_D)RTTOV_XLF = enable XLF specific performance enhancements (must be used with -qarch=auto) (moderate performance enhancement)
# -qnounroll - don't try to unroll rttov_opdep subroutine (reduces performance and has already been done by hand) 
# -lmass - explicitly link with MASS library (significant performance enhancement)
