Makepp (short for Make-plus-plus, or make++) is a tool for solving exactly this problem. It is an improvement on the make program, a standard tool that has been around for many years. It relies either on its own built in knowledge (in very simple cases), or on a file called a makefile that contains a detailed recipe for building the program.
具体看文章:
http://makepp.sourceforge.net/1.19/makepp_tutorial.html