DwimCompile

DwimCompile provides an alternative to the compile command.

You can get the latest version here:

Some of its features are:

Put something like this in your .emacs:

    (require 'dwim-compile)
    (global-set-key "\C-cc" 'dwim-c/compile)

Hope it will be useful – CinSK.

See Also : ModeCompile, SmartCompile, CompileCommand