Note that you can add new source files (.cpp and .h) to the directory without modifying the Makefile. They will be picked up automatically and dependencies will be created for them automatically.
Note that this Makefile is meant only to build a single program from all the source in the directory -- so don't try to add a second program or a library to it -- unless you want to take on the challenge of keepign the automatic behaviors working correctly.
Note you can pick up a better documened strategy for constructing project trees in my example:
Please address Makefile questions in this topic.
Note that you can add new source files (.cpp and .h) to the directory without modifying the Makefile. They will be picked up automatically and dependencies will be created for them automatically.
Note that this Makefile is meant only to build a single program from all the source in the directory -- so don't try to add a second program or a library to it -- unless you want to take on the challenge of keepign the automatic behaviors working correctly.
Note you can pick up a better documened strategy for constructing project trees in my example:
http://www.bordoon.com/make.zip
It lets you build project trees and works both on linux and on windows if you hold your tongue just right -- as the saying goes.