where to ask trivial programming questions
CyberFonic: You will find a good introductory book on programming a great deal of help.  Try to pick one that has examples of compile commands and makefiles.Another alternative is to take an OSS project and read, make changes.  Typically all the makefiles, etc are correctly setup.  There are some excellent videos on-line as well.