The HC12 makefile sample code can be found in
{your CW install directory}\(CodeWarrior_Examples)\MakeFileSample_HC12.
This sample code is available for all HC(S)12 derivatives.
please also search tn100 on freescale web site which is about how to implement CW in batch mode