Hello pgo,
HC(s)08 compiler generates several macros you can use for this purposes e.g.:
__VERSION__ 5029
__VERSION_STR__ "V-5.0.29"
__MWERKS__ 1
...
For complete list of compiler generated macros you can add option -Ldf=predef.h into Compiler Arguments (ALT+F7 -> "Compiler for HC08" -> "Command Line Arguments") After make the file predef.h includes all these macros. I'd suggest you to see the "Compiler_HC08.pdf", section "Compiler Predefined Macros" for more info.
Stanish