oops

my bad...
So you want to add kaillera to mame? From the scratch or do you want to use the existing MAME++ stuff?
Yeah you'll need the kaillera sdk as well. Well, I don't think there is any descent/complete documentation out there yet for doing such if you want to do it from the scratch. Your only reference will be kailleraclient.h in the kaillera sdk and existing open source emulators which incorporates kaillera.
Either way, if you want a command line version, you'll need to get your hands dirty. I suppose the obvious difference between MAME++ and what you are after would be activating kaillera netplay when that "-kaillera" argument is set instead of when user selects to activate netplay from MAME++ gui. Also, if you don't want kaillera to have GUI, you'll need to code the client part yourself.
I slipped up. I lack discipline!