i got one root folder containing my main.cpp and four folders named cmnlib(for static library), include(for headers), sourcefiles(.cpp), dbdes(mydatabase). i want to create a make file and it will first create object files from the .cpp files into sourcefiles folder and then it will create a libLibrary.a to cmnlib folder and then finally it will create the executable in the root folder using main.cpp and the libLibrary.a . can you please provide me with an example?
Thanks.