Large-p⊥ hadroproduction of heavy quarks