Makefiles
Make - a tutorial
The Makefile
Makefile Getting Started
Example:
how to split a program into parts and create a Makefile