You can use CMake for this. It's easy to use but really powerful. See here for documentation.
Some Pros:
- Very powerful / configurable
- easy to use
- simple to add a cmake library to other (cmake) projects
- Commandline and GUI available
- Available on all major platform
- supports native- and cross compiling
- can generate project files for various IDE's incl. Makefiles
Some more documentation: