RHTSLIB_LIBS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \
    'Rhtslib::pkgconfig("PKG_LIBS")')
RHTSLIB_CPPFLAGS=$(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e \
    'Rhtslib::pkgconfig("PKG_CPPFLAGS")')

PKG_CXXFLAGS = $(OMPBAM_PKG_CXXFLAGS) -DSPLICEWIZ -DWITH_HTSLIB $(RHTSLIB_CPPFLAGS)
PKG_LIBS = $(OMPBAM_PKG_LIBS) -DSPLICEWIZ -DWITH_HTSLIB $(RHTSLIB_LIBS)