KoolDock is based upon the work of Dang Viet Dung, KSmoothDock 2.1.
For the latest release of ksmoothdock, please visit 
http://www.kde-look.org/content/show.php?content=6585

To compile with debug, run:
$ CXXFLAGS="-D_ENABLE_DEBUG" ./configure --enable-debug=full

Normal compilation:
Run in console 
make -f Makefile.dist
./configure
make; make install

make install - it installs compiled project into tour system, to do this you must have root privilages