Tutorial on building C++ programs with root libraries?

I’m looking for some tutorials on building C++ programs using root classes. Specifically, what dependencies are necessary. sample makefiles would be ideal.

i am a noob.

i’m running (up to date) fedora.

found this: root.cern.ch/root/Makefile.html

Otherwise you can use the script:

to obtain the g++ flags and

ROOTLIBS = `root-config --libs`[code] for the libraries

There are several example applications and a makefile in $ROOTSYS/test.