\documentclass{article}
\begin{document}
foo\cite{TeXbook}
\include{sub}
\bibliographystyle{plain}
\bibliography{foo,baz}
\end{document}
