This question already has an answer here:
Sometimes I want to refer (using
\label from some other tex file. What is the right way to do it?
(It's, of course, possible to
\include all files in one and then use
\includeonly — but it breaks e.g. page and section numbering.)