This is a ruby gem that makes it easy to compile small apps using gcc or g++, you even don't need a makefile!
gem install ucc
See ucc -h
ucc -h