Run moc --help and read the help text. I really suggest you use qmake, though.