Compile cgi only



I would like to write my own cgi that emits xml instead of html pages so I started modofying the main cgi but it’s an hard task. As I have to compile the entire nagios to have my custom cgi binaries I would like to know ho to compile the cgi only.